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>
| ... | ... |
@@ -360,7 +360,7 @@ func testExternalGraphDriver(ext string, ec map[string]*graphEventsCounter) func |
| 360 | 360 |
|
| 361 | 361 |
ctx := context.Background() |
| 362 | 362 |
|
| 363 |
- testGraphDriver(t, c, ctx, driverName, func(t *testing.T) {
|
|
| 363 |
+ testGraphDriver(ctx, t, c, driverName, func(t *testing.T) {
|
|
| 364 | 364 |
d.Restart(t, "-s", driverName) |
| 365 | 365 |
}) |
| 366 | 366 |
|
| ... | ... |
@@ -434,11 +434,10 @@ func TestGraphdriverPluginV2(t *testing.T) {
|
| 434 | 434 |
d.Stop(t) |
| 435 | 435 |
d.StartWithBusybox(t, "-s", plugin, "--storage-opt", "overlay2.override_kernel_check=1") |
| 436 | 436 |
|
| 437 |
- testGraphDriver(t, client, ctx, plugin, nil) |
|
| 437 |
+ testGraphDriver(ctx, t, client, plugin, nil) |
|
| 438 | 438 |
} |
| 439 | 439 |
|
| 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)) {
|
|
| 442 | 441 |
id := container.Run(ctx, t, c, container.WithCmd("sh", "-c", "echo hello > /hello"))
|
| 443 | 442 |
|
| 444 | 443 |
if afterContainerRunFn != nil {
|