From 8406cbbb998deff644ec009b723de34eaf78df1f Mon Sep 17 00:00:00 2001 From: Angelo De Caro Date: Tue, 5 May 2026 18:02:31 +0200 Subject: [PATCH] fix test that was rewriting content in the testdata folder at each execution Signed-off-by: Angelo De Caro --- cmd/tokengen/main_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/tokengen/main_test.go b/cmd/tokengen/main_test.go index def0647335..0e9d600316 100644 --- a/cmd/tokengen/main_test.go +++ b/cmd/tokengen/main_test.go @@ -42,9 +42,9 @@ func TestGenFullSuccess(t *testing.T) { gt.Expect(err).NotTo(HaveOccurred()) defer gexec.CleanupBuildArtifacts() - // tempOutput := t.TempDir() - // defer utils.IgnoreErrorWithOneArg(os.RemoveAll, tempOutput) - tempOutput := "./testdata" + tempOutput := t.TempDir() + defer utils.IgnoreErrorWithOneArg(os.RemoveAll, tempOutput) + // tempOutput := "./testdata" testGenRun( gt, tokengen,