mirror of
https://github.com/moby/moby.git
synced 2026-01-11 10:41:43 +00:00
client: refactor NetworkConnect, NetworkDisconnect, NetworkRemove
Signed-off-by: Austin Vazquez <austin.vazquez@docker.com> Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
committed by
Sebastiaan van Stijn
parent
c755b9635d
commit
e9f28e2a41
@@ -157,7 +157,7 @@ func deleteAllNetworks(ctx context.Context, t testing.TB, c client.NetworkAPICli
|
||||
// nat is a pre-defined network on Windows and cannot be removed
|
||||
continue
|
||||
}
|
||||
err := c.NetworkRemove(ctx, nw.ID)
|
||||
_, err := c.NetworkRemove(ctx, nw.ID, client.NetworkRemoveOptions{})
|
||||
assert.Check(t, err, "failed to remove network %s", nw.ID)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user