Skip to content

Commit 123e29f

Browse files
committed
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>
1 parent 9f9b429 commit 123e29f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

integration/network/delete_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func containsNetwork(nws []types.NetworkResource, networkID string) bool {
2727
// first network's ID as name.
2828
//
2929
// After successful creation, properties of all three networks is returned
30-
func createAmbiguousNetworks(t *testing.T, ctx context.Context, client dclient.APIClient) (string, string, string) { // nolint: golint
30+
func createAmbiguousNetworks(ctx context.Context, t *testing.T, client dclient.APIClient) (string, string, string) {
3131
testNet := network.CreateNoError(ctx, t, client, "testNet")
3232
idPrefixNet := network.CreateNoError(ctx, t, client, testNet[:12])
3333
fullIDNet := network.CreateNoError(ctx, t, client, testNet)
@@ -70,7 +70,7 @@ func TestDockerNetworkDeletePreferID(t *testing.T) {
7070
defer setupTest(t)()
7171
client := testEnv.APIClient()
7272
ctx := context.Background()
73-
testNet, idPrefixNet, fullIDNet := createAmbiguousNetworks(t, ctx, client)
73+
testNet, idPrefixNet, fullIDNet := createAmbiguousNetworks(ctx, t, client)
7474

7575
// Delete the network using a prefix of the first network's ID as name.
7676
// This should the network name with the id-prefix, not the original network.

0 commit comments

Comments
 (0)