Преглед изворни кода

Protect entire environment when testing

Signed-off-by: Christopher Crone <christopher.crone@docker.com>
Christopher Crone пре 7 година
родитељ
комит
063c89c71f
3 измењених фајлова са 3 додато и 3 уклоњено
  1. 1 1
      integration-cli/check_test.go
  2. 1 1
      integration/container/main_test.go
  3. 1 1
      integration/service/main_test.go

+ 1 - 1
integration-cli/check_test.go

@@ -67,7 +67,7 @@ func TestMain(m *testing.M) {
 func Test(t *testing.T) {
 func Test(t *testing.T) {
 	cli.SetTestEnvironment(testEnv)
 	cli.SetTestEnvironment(testEnv)
 	fakestorage.SetTestEnvironment(&testEnv.Execution)
 	fakestorage.SetTestEnvironment(&testEnv.Execution)
-	ienv.ProtectImages(t, &testEnv.Execution)
+	ienv.ProtectAll(t, &testEnv.Execution)
 	check.TestingT(t)
 	check.TestingT(t)
 }
 }
 
 

+ 1 - 1
integration/container/main_test.go

@@ -23,6 +23,6 @@ func TestMain(m *testing.M) {
 }
 }
 
 
 func setupTest(t *testing.T) func() {
 func setupTest(t *testing.T) func() {
-	environment.ProtectImages(t, testEnv)
+	environment.ProtectAll(t, testEnv)
 	return func() { testEnv.Clean(t) }
 	return func() { testEnv.Clean(t) }
 }
 }

+ 1 - 1
integration/service/main_test.go

@@ -25,6 +25,6 @@ func TestMain(m *testing.M) {
 }
 }
 
 
 func setupTest(t *testing.T) func() {
 func setupTest(t *testing.T) func() {
-	environment.ProtectImages(t, testEnv)
+	environment.ProtectAll(t, testEnv)
 	return func() { testEnv.Clean(t) }
 	return func() { testEnv.Clean(t) }
 }
 }