summaryrefslogtreecommitdiff
path: root/integration/plugin
diff options
context:
space:
mode:
authorSebastiaan van Stijn <github@gone.nl>2019-06-06 13:33:54 +0200
committerSebastiaan van Stijn <github@gone.nl>2019-06-07 13:05:51 +0200
commitdac5710b689fc6e0614c6b20a11017ad30e907f8 (patch)
tree07faedc1cadbf01b7f0706dcc861f7c78bd6a68a /integration/plugin
parent123e29f44aa9fb39f7ee5cb42c94b4d7bbe8ba82 (diff)
downloaddocker-dac5710b689fc6e0614c6b20a11017ad30e907f8.tar.gz
integration: change testGraphDriver signature to fix linting
Line 441: 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/plugin')
-rw-r--r--integration/plugin/graphdriver/external_test.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/integration/plugin/graphdriver/external_test.go b/integration/plugin/graphdriver/external_test.go
index a944899e2a..c89f9961d1 100644
--- a/integration/plugin/graphdriver/external_test.go
+++ b/integration/plugin/graphdriver/external_test.go
@@ -360,7 +360,7 @@ func testExternalGraphDriver(ext string, ec map[string]*graphEventsCounter) func
ctx := context.Background()
- testGraphDriver(t, c, ctx, driverName, func(t *testing.T) {
+ testGraphDriver(ctx, t, c, driverName, func(t *testing.T) {
d.Restart(t, "-s", driverName)
})
@@ -434,11 +434,10 @@ func TestGraphdriverPluginV2(t *testing.T) {
d.Stop(t)
d.StartWithBusybox(t, "-s", plugin, "--storage-opt", "overlay2.override_kernel_check=1")
- testGraphDriver(t, client, ctx, plugin, nil)
+ testGraphDriver(ctx, t, client, plugin, nil)
}
-// nolint: golint
-func testGraphDriver(t *testing.T, c client.APIClient, ctx context.Context, driverName string, afterContainerRunFn func(*testing.T)) { //nolint: golint
+func testGraphDriver(ctx context.Context, t *testing.T, c client.APIClient, driverName string, afterContainerRunFn func(*testing.T)) {
id := container.Run(ctx, t, c, container.WithCmd("sh", "-c", "echo hello > /hello"))
if afterContainerRunFn != nil {