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
1 changed files with 2 additions and 0 deletions

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)