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

Merge pull request #30851 from chchliang/networktest

add testcase check connect.EndpointConfig not nil
This commit is contained in:
Brian Goff 2017-02-13 10:58:02 -05:00 committed by GitHub
commit 019eb5d71f

View file

@ -87,6 +87,10 @@ func TestNetworkConnect(t *testing.T) {
return nil, fmt.Errorf("expected 'container_id', got %s", connect.Container)
}
if connect.EndpointConfig == nil {
return nil, fmt.Errorf("expected connect.EndpointConfig to be not nil, got %v", connect.EndpointConfig)
}
if connect.EndpointConfig.NetworkID != "NetworkID" {
return nil, fmt.Errorf("expected 'NetworkID', got %s", connect.EndpointConfig.NetworkID)
}