From 1fb1eddd8c6cd97f66e3fd201c4063d2de1087e3 Mon Sep 17 00:00:00 2001 From: Sam Stoelinga Date: Mon, 23 Mar 2020 10:51:09 -0700 Subject: [PATCH] Test: Remove DockerConf after CheckPushPermission --- pkg/executor/push_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/executor/push_test.go b/pkg/executor/push_test.go index 2b0d06e5e..54eda4654 100644 --- a/pkg/executor/push_test.go +++ b/pkg/executor/push_test.go @@ -355,6 +355,7 @@ func TestCheckPushPermissions(t *testing.T) { } if test.ExistingConfig { afero.WriteFile(fs, DockerConfLocation, []byte(""), os.FileMode(0644)) + defer fs.Remove(DockerConfLocation) } CheckPushPermissions(&opts) if test.ShouldCallExecCommand != calledExecCommand {