Signed-off-by: chchliang <chen.chuanliang@zte.com.cn>
| ... | ... |
@@ -87,6 +87,10 @@ func TestNetworkConnect(t *testing.T) {
|
| 87 | 87 |
return nil, fmt.Errorf("expected 'container_id', got %s", connect.Container)
|
| 88 | 88 |
} |
| 89 | 89 |
|
| 90 |
+ if connect.EndpointConfig == nil {
|
|
| 91 |
+ return nil, fmt.Errorf("expected connect.EndpointConfig to be not nil, got %v", connect.EndpointConfig)
|
|
| 92 |
+ } |
|
| 93 |
+ |
|
| 90 | 94 |
if connect.EndpointConfig.NetworkID != "NetworkID" {
|
| 91 | 95 |
return nil, fmt.Errorf("expected 'NetworkID', got %s", connect.EndpointConfig.NetworkID)
|
| 92 | 96 |
} |