Test: Remove DockerConf after CheckPushPermission
This commit is contained in:
parent
c2393df7c3
commit
1fb1eddd8c
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue