Skip to content

Commit 8406cbb

Browse files
committed
fix test that was rewriting content in the testdata folder at each execution
Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
1 parent 379785e commit 8406cbb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cmd/tokengen/main_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ func TestGenFullSuccess(t *testing.T) {
4242
gt.Expect(err).NotTo(HaveOccurred())
4343
defer gexec.CleanupBuildArtifacts()
4444

45-
// tempOutput := t.TempDir()
46-
// defer utils.IgnoreErrorWithOneArg(os.RemoveAll, tempOutput)
47-
tempOutput := "./testdata"
45+
tempOutput := t.TempDir()
46+
defer utils.IgnoreErrorWithOneArg(os.RemoveAll, tempOutput)
47+
// tempOutput := "./testdata"
4848
testGenRun(
4949
gt,
5050
tokengen,

0 commit comments

Comments
 (0)