Quellcode durchsuchen

Merge pull request #1907 from thaJeztah/fix-faulty-test

Fix test using com.docker.network.mtu
Flavio Crisciani vor 7 Jahren
Ursprung
Commit
ad54472474
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      libnetwork/libnetwork_test.go

+ 1 - 1
libnetwork/libnetwork_test.go

@@ -417,7 +417,7 @@ func TestNetworkConfig(t *testing.T) {
 		libnetwork.NetworkOptionIpam("", "", ipamV4ConfList, nil, nil),
 		libnetwork.NetworkOptionIpam("", "", ipamV4ConfList, nil, nil),
 		libnetwork.NetworkOptionIpam("", "", nil, ipamV6ConfList, nil),
 		libnetwork.NetworkOptionIpam("", "", nil, ipamV6ConfList, nil),
 		libnetwork.NetworkOptionLabels(map[string]string{"number": "two"}),
 		libnetwork.NetworkOptionLabels(map[string]string{"number": "two"}),
-		libnetwork.NetworkOptionDriverOpts(map[string]string{"com.docker.network.mtu": "1600"}),
+		libnetwork.NetworkOptionDriverOpts(map[string]string{"com.docker.network.driver.mtu": "1600"}),
 	} {
 	} {
 		_, err = controller.NewNetwork(bridgeNetType, "testBR", "",
 		_, err = controller.NewNetwork(bridgeNetType, "testBR", "",
 			libnetwork.NetworkOptionConfigFrom("config_network0"), opt)
 			libnetwork.NetworkOptionConfigFrom("config_network0"), opt)