moby/integration
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
..
build integration: Don't env cleanup before parallel subtests 2023-07-13 15:07:08 +02:00
config integration: fix empty-lines (revive) 2022-09-30 23:59:30 +02:00
container integration: Don't env cleanup before parallel subtests 2023-07-13 15:07:08 +02:00
daemon daemon: daemon.prepareMountPoints(): fix panic if mount is not a volume 2023-07-07 15:59:05 -04:00
distribution bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-11 00:06:42 +01:00
image integration: disable iptables in parallel tests 2023-07-07 15:48:05 -04:00
internal Fix pruning anon volume created from image config 2023-03-14 16:11:09 +01:00
network integration: Don't env cleanup before parallel subtests 2023-07-13 15:07:08 +02:00
plugin integration: Don't env cleanup before parallel subtests 2023-07-13 15:07:08 +02:00
secret integration: fix empty-lines (revive) 2022-09-30 23:59:30 +02:00
service integration: fix empty-lines (revive) 2022-09-30 23:59:30 +02:00
session bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-11 00:06:42 +01:00
system integration: fix empty-lines (revive) 2022-09-30 23:59:30 +02:00
testdata/https Update test certificates 2021-05-18 09:43:21 +02:00
volume integration: Don't env cleanup before parallel subtests 2023-07-13 15:07:08 +02:00
doc.go Add canonical import comment 2018-02-05 16:51:57 -05:00