![]() 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
|
||
---|---|---|
.. | ||
ipvlan | ||
macvlan | ||
delete_test.go | ||
dns_test.go | ||
helpers.go | ||
helpers_windows.go | ||
inspect_test.go | ||
main_test.go | ||
network_test.go | ||
service_test.go |