moby/integration/plugin
Paweł Gronowski c6031ad519
integration: Don't env cleanup before parallel subtests
Calling function returned from setupTest (which calls testEnv.Clean) in
a defer block inside a test that spawns parallel subtests caused the
cleanup function to be called before any of the subtest did anything.

Change the defer expressions to use `t.Cleanup` instead to call it only
after all subtests have also finished.
This only changes tests which have parallel subtests.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
(cherry picked from commit f9e2eed55d)
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2023-07-13 15:07:08 +02:00
..
authz api: rename volume.VolumeCreateBody to volume.CreateOptions 2022-04-28 22:39:14 +02:00
common integration: Don't env cleanup before parallel subtests 2023-07-13 15:07:08 +02:00
graphdriver integration/plugin: remove deprecated overlay2.override_kernel_check 2022-10-10 15:00:29 +02:00
logging integration: fix empty-lines (revive) 2022-09-30 23:59:30 +02:00
volumes linting: gosec: fix or suppress G112, G114 in test code 2022-09-06 15:11:42 +02:00
pkg_test.go Add canonical import comment 2018-02-05 16:51:57 -05:00