Test: Remove DockerConf after CheckPushPermission

This commit is contained in:
Sam Stoelinga
2020-03-23 10:51:09 -07:00
parent c2393df7c3
commit 1fb1eddd8c
+1
View File
@@ -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 {