diff options
author | Sebastiaan van Stijn <github@gone.nl> | 2019-06-06 13:00:37 +0200 |
---|---|---|
committer | Sebastiaan van Stijn <github@gone.nl> | 2019-06-07 13:04:44 +0200 |
commit | b4c46b0dac0d74fed8b8adc56cbb7f55788e4916 (patch) | |
tree | 4b92e321eab6290ad37855e3d712acd10d441f45 /integration/image/commit_test.go | |
parent | caec45a37faf351afc82cb6228ea2e2b48589432 (diff) | |
download | docker-b4c46b0dac0d74fed8b8adc56cbb7f55788e4916.tar.gz |
integration: change container.Create signature to fix linting
```
Line 25: warning: context.Context should be the first parameter of a function (golint)
Line 44: warning: context.Context should be the first parameter of a function (golint)
Line 52: warning: context.Context should be the first parameter of a function (golint)
```
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Diffstat (limited to 'integration/image/commit_test.go')
-rw-r--r-- | integration/image/commit_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/integration/image/commit_test.go b/integration/image/commit_test.go index 996f3716a9..26850c52da 100644 --- a/integration/image/commit_test.go +++ b/integration/image/commit_test.go @@ -19,7 +19,7 @@ func TestCommitInheritsEnv(t *testing.T) { client := testEnv.APIClient() ctx := context.Background() - cID1 := container.Create(t, ctx, client) + cID1 := container.Create(ctx, t, client) commitResp1, err := client.ContainerCommit(ctx, cID1, types.ContainerCommitOptions{ Changes: []string{"ENV PATH=/bin"}, @@ -33,7 +33,7 @@ func TestCommitInheritsEnv(t *testing.T) { expectedEnv1 := []string{"PATH=/bin"} assert.Check(t, is.DeepEqual(expectedEnv1, image1.Config.Env)) - cID2 := container.Create(t, ctx, client, container.WithImage(image1.ID)) + cID2 := container.Create(ctx, t, client, container.WithImage(image1.ID)) commitResp2, err := client.ContainerCommit(ctx, cID2, types.ContainerCommitOptions{ Changes: []string{"ENV PATH=/usr/bin:$PATH"}, |