1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Protect entire environment when testing

Signed-off-by: Christopher Crone <christopher.crone@docker.com>
This commit is contained in:
Christopher Crone 2017-09-08 16:42:10 +02:00
parent 0520581523
commit 063c89c71f
3 changed files with 3 additions and 3 deletions

View file

@ -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)
}

View file

@ -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) }
}

View file

@ -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) }
}