Browse code

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>
(cherry picked from commit 123e29f44aa9fb39f7ee5cb42c94b4d7bbe8ba82)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2019/06/06 20:31:47
Showing 1 changed files
... ...
@@ -27,7 +27,7 @@ func containsNetwork(nws []types.NetworkResource, networkID string) bool {
27 27
 // first network's ID as name.
28 28
 //
29 29
 // 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) {
31 31
 	testNet := network.CreateNoError(ctx, t, client, "testNet")
32 32
 	idPrefixNet := network.CreateNoError(ctx, t, client, testNet[:12])
33 33
 	fullIDNet := network.CreateNoError(ctx, t, client, testNet)
... ...
@@ -70,7 +70,7 @@ func TestDockerNetworkDeletePreferID(t *testing.T) {
70 70
 	defer setupTest(t)()
71 71
 	client := testEnv.APIClient()
72 72
 	ctx := context.Background()
73
-	testNet, idPrefixNet, fullIDNet := createAmbiguousNetworks(t, ctx, client)
73
+	testNet, idPrefixNet, fullIDNet := createAmbiguousNetworks(ctx, t, client)
74 74
 
75 75
 	// Delete the network using a prefix of the first network's ID as name.
76 76
 	// This should the network name with the id-prefix, not the original network.