diff --git a/helpers.go b/helpers.go
index 0458e34a96831939b3af07c9555087196cdecda0..ad718544b9d78e8246053524fc827314f59eebaa 100644
--- a/helpers.go
+++ b/helpers.go
@@ -27,5 +27,5 @@ func TempFile(s *TestSuite, t *testing.T, args []string) {
 		os.Remove(file.Name())
 	})
 	t.Logf("TempFile: %s=%s", args[0], file.Name())
-	t.Setenv(args[0], file.Name())
+	s.Setenv(args[0], file.Name())
 }