diff --git a/cli/kata-env_test.go b/cli/kata-env_test.go index 6cf1fb0f65..417e6240e8 100644 --- a/cli/kata-env_test.go +++ b/cli/kata-env_test.go @@ -762,6 +762,7 @@ func TestEnvShowSettingsInvalidFile(t *testing.T) { tmpfile, err := ioutil.TempFile("", "envShowSettings-") assert.NoError(t, err) + defer os.Remove(tmpfile.Name()) // close the file tmpfile.Close()