summaryrefslogtreecommitdiff
path: root/integration/image/commit_test.go
diff options
context:
space:
mode:
authorSebastiaan van Stijn <github@gone.nl>2019-06-06 13:00:37 +0200
committerSebastiaan van Stijn <github@gone.nl>2019-06-07 13:04:44 +0200
commitb4c46b0dac0d74fed8b8adc56cbb7f55788e4916 (patch)
tree4b92e321eab6290ad37855e3d712acd10d441f45 /integration/image/commit_test.go
parentcaec45a37faf351afc82cb6228ea2e2b48589432 (diff)
downloaddocker-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.go4
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"},