Selaa lähdekoodia

Specify a different bridge for tests than for regular runtime

Guillaume J. Charmes 12 vuotta sitten
vanhempi
commit
ee298d1420
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      runtime_test.go

+ 2 - 0
runtime_test.go

@@ -60,6 +60,8 @@ func init() {
 		panic("docker tests needs to be run as root")
 	}
 
+	NetworkBridgeIface = "testdockbr0"
+
 	// Make it our Store root
 	runtime, err := NewRuntimeFromDirectory(unitTestStoreBase)
 	if err != nil {