diff --git a/pkg/tests/renderdir/renderdir_test.go b/pkg/tests/renderdir/renderdir_test.go index df0ef77101..9e95b4a37f 100644 --- a/pkg/tests/renderdir/renderdir_test.go +++ b/pkg/tests/renderdir/renderdir_test.go @@ -105,7 +105,7 @@ func TestKotsRenderDir(t *testing.T) { // Comment out this line to review the generated results. // Just be sure to delete the 'results' directory in each test manually when finished! - // defer func() { os.RemoveAll(resultsDir) }() + defer func() { os.RemoveAll(resultsDir) }() fmt.Printf("running test %s\n", tt.Name) err = render.RenderDir(tt.RenderDirOptions)