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 {
|
if test.ExistingConfig {
|
||||||
afero.WriteFile(fs, DockerConfLocation, []byte(""), os.FileMode(0644))
|
afero.WriteFile(fs, DockerConfLocation, []byte(""), os.FileMode(0644))
|
||||||
|
defer fs.Remove(DockerConfLocation)
|
||||||
}
|
}
|
||||||
CheckPushPermissions(&opts)
|
CheckPushPermissions(&opts)
|
||||||
if test.ShouldCallExecCommand != calledExecCommand {
|
if test.ShouldCallExecCommand != calledExecCommand {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue