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.
|
||||
//
|
||||
// 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")
|
||||
idPrefixNet := network.CreateNoError(ctx, t, client, testNet[:12])
|
||||
fullIDNet := network.CreateNoError(ctx, t, client, testNet)
|
||||
|
@ -70,7 +70,7 @@ func TestDockerNetworkDeletePreferID(t *testing.T) {
|
|||
defer setupTest(t)()
|
||||
client := testEnv.APIClient()
|
||||
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.
|
||||
// This should the network name with the id-prefix, not the original network.
|
||||
|
|
Loading…
Reference in a new issue