moby/integration/build
Paweł Gronowski 959889efd9
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:06:36 +02:00
..
testdata Using test names instead of hardcoded ones in integration/build directory 2020-05-18 16:36:23 +01:00
build_cgroupns_linux_test.go bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-11 00:06:42 +01:00
build_session_test.go vendor: update buildkit to v0.11.2 2023-02-01 23:29:10 -08:00
build_squash_test.go refactor: move from io/ioutil to io and os package 2021-08-27 14:56:57 +08:00
build_test.go integration: Don't env cleanup before parallel subtests 2023-07-13 15:06:36 +02:00
build_userns_linux_test.go TestBuildUserNamespaceValidateCapabilitiesAreV2: cleanup daemon storage 2021-11-10 12:25:16 +01:00
main_test.go testutil: make testing packages public 2019-09-11 07:47:23 -05:00