Protect entire environment when testing
Signed-off-by: Christopher Crone <christopher.crone@docker.com> Upstream-commit: 063c89c71fd1fbeb7ef7c46f43ee805b620e7136 Component: engine
This commit is contained in:
@@ -67,7 +67,7 @@ func TestMain(m *testing.M) {
|
||||
func Test(t *testing.T) {
|
||||
cli.SetTestEnvironment(testEnv)
|
||||
fakestorage.SetTestEnvironment(&testEnv.Execution)
|
||||
ienv.ProtectImages(t, &testEnv.Execution)
|
||||
ienv.ProtectAll(t, &testEnv.Execution)
|
||||
check.TestingT(t)
|
||||
}
|
||||
|
||||
|
||||
@@ -23,6 +23,6 @@ func TestMain(m *testing.M) {
|
||||
}
|
||||
|
||||
func setupTest(t *testing.T) func() {
|
||||
environment.ProtectImages(t, testEnv)
|
||||
environment.ProtectAll(t, testEnv)
|
||||
return func() { testEnv.Clean(t) }
|
||||
}
|
||||
|
||||
@@ -25,6 +25,6 @@ func TestMain(m *testing.M) {
|
||||
}
|
||||
|
||||
func setupTest(t *testing.T) func() {
|
||||
environment.ProtectImages(t, testEnv)
|
||||
environment.ProtectAll(t, testEnv)
|
||||
return func() { testEnv.Clean(t) }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user