Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit 2d9e55c

Browse files
committed
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> (cherry picked from commit dac5710b689fc6e0614c6b20a11017ad30e907f8) Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: 168132b63206a32fde92d3eeb3f27b1e0180e9c5 Component: engine
1 parent 37b7c44 commit 2d9e55c

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

components/engine/integration/plugin/graphdriver/external_test.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ func testExternalGraphDriver(ext string, ec map[string]*graphEventsCounter) func
360360

361361
ctx := context.Background()
362362

363-
testGraphDriver(t, c, ctx, driverName, func(t *testing.T) {
363+
testGraphDriver(ctx, t, c, driverName, func(t *testing.T) {
364364
d.Restart(t, "-s", driverName)
365365
})
366366

@@ -434,11 +434,10 @@ func TestGraphdriverPluginV2(t *testing.T) {
434434
d.Stop(t)
435435
d.StartWithBusybox(t, "-s", plugin, "--storage-opt", "overlay2.override_kernel_check=1")
436436

437-
testGraphDriver(t, client, ctx, plugin, nil)
437+
testGraphDriver(ctx, t, client, plugin, nil)
438438
}
439439

440-
// nolint: golint
441-
func testGraphDriver(t *testing.T, c client.APIClient, ctx context.Context, driverName string, afterContainerRunFn func(*testing.T)) { //nolint: golint
440+
func testGraphDriver(ctx context.Context, t *testing.T, c client.APIClient, driverName string, afterContainerRunFn func(*testing.T)) {
442441
id := container.Run(ctx, t, c, container.WithCmd("sh", "-c", "echo hello > /hello"))
443442

444443
if afterContainerRunFn != nil {

0 commit comments

Comments
 (0)