Merge pull request #37773 from kolyshkin/fix-TestServiceWithDefaultAddressPoolInit

TestServiceWithDefaultAddressPoolInit: avoid panic
This commit is contained in:
Vincent Demeester 2018-09-14 11:47:29 +02:00 committed by GitHub
commit 43b8dc7e1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -345,6 +345,8 @@ func TestServiceWithDefaultAddressPoolInit(t *testing.T) {
out, err := cli.NetworkInspect(context.Background(), name, types.NetworkInspectOptions{})
assert.NilError(t, err)
t.Logf("%s: NetworkInspect: %+v", t.Name(), out)
assert.Assert(t, len(out.IPAM.Config) > 0)
assert.Equal(t, out.IPAM.Config[0].Subnet, "20.20.0.0/24")
err = cli.ServiceRemove(context.Background(), serviceID)