mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
integration: change createAmbiguousNetworks signature to fix linting
Line 30: warning: context.Context should be the first parameter of a function (golint) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
9f9b4290b9
commit
123e29f44a
1 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ func containsNetwork(nws []types.NetworkResource, networkID string) bool {
|
||||||
// first network's ID as name.
|
// first network's ID as name.
|
||||||
//
|
//
|
||||||
// After successful creation, properties of all three networks is returned
|
// After successful creation, properties of all three networks is returned
|
||||||
func createAmbiguousNetworks(t *testing.T, ctx context.Context, client dclient.APIClient) (string, string, string) { // nolint: golint
|
func createAmbiguousNetworks(ctx context.Context, t *testing.T, client dclient.APIClient) (string, string, string) {
|
||||||
testNet := network.CreateNoError(ctx, t, client, "testNet")
|
testNet := network.CreateNoError(ctx, t, client, "testNet")
|
||||||
idPrefixNet := network.CreateNoError(ctx, t, client, testNet[:12])
|
idPrefixNet := network.CreateNoError(ctx, t, client, testNet[:12])
|
||||||
fullIDNet := network.CreateNoError(ctx, t, client, testNet)
|
fullIDNet := network.CreateNoError(ctx, t, client, testNet)
|
||||||
|
@ -70,7 +70,7 @@ func TestDockerNetworkDeletePreferID(t *testing.T) {
|
||||||
defer setupTest(t)()
|
defer setupTest(t)()
|
||||||
client := testEnv.APIClient()
|
client := testEnv.APIClient()
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
testNet, idPrefixNet, fullIDNet := createAmbiguousNetworks(t, ctx, client)
|
testNet, idPrefixNet, fullIDNet := createAmbiguousNetworks(ctx, t, client)
|
||||||
|
|
||||||
// Delete the network using a prefix of the first network's ID as name.
|
// Delete the network using a prefix of the first network's ID as name.
|
||||||
// This should the network name with the id-prefix, not the original network.
|
// This should the network name with the id-prefix, not the original network.
|
||||||
|
|
Loading…
Reference in a new issue