From 8af91e50f6b223e7c2aacf771d868b4a11fc7d45 Mon Sep 17 00:00:00 2001 From: Viacheslav Poturaev Date: Wed, 7 Jul 2021 20:22:32 +0200 Subject: [PATCH] Revert minimal Go version to 1.13 --- go.mod | 2 +- run_test.go | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index 10dcceb..646ab05 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/cucumber/godog -go 1.16 +go 1.13 require ( github.com/cucumber/gherkin-go/v19 v19.0.3 diff --git a/run_test.go b/run_test.go index 284af77..b94018b 100644 --- a/run_test.go +++ b/run_test.go @@ -350,7 +350,13 @@ func Test_FormatOutputRun(t *testing.T) { noRandomFlag, []string{featurePath}, ) - file := filepath.Join(t.TempDir(), "result.xml") + dir := filepath.Join(os.TempDir(), t.Name()) + err := os.MkdirAll(dir, 0755) + require.NoError(t, err) + + defer os.RemoveAll(dir) + + file := filepath.Join(dir, "result.xml") actualStatus, actualOutput := testRun(t, fmtOutputScenarioInitializer,