19961: Fix tests sabotaging other tests.
authorTom Clegg <tom@curii.com>
Thu, 16 Feb 2023 21:56:14 +0000 (16:56 -0500)
committerTom Clegg <tom@curii.com>
Thu, 16 Feb 2023 21:56:14 +0000 (16:56 -0500)
commitac351421506de537e44b1771fbd44103ef04a523
tree572560afd12c918e52fd6f9c8ba573c27ae47d14
parent7a0626a6ca34771ffd45d2b669a39690acf9a8b0
19961: Fix tests sabotaging other tests.

Goroutines were calling "s.executor.exit <- exitCode" after their own
test was finished, at which point s.executor belonged to a subsequent
test, which would then exit too early or with the wrong exit code.

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>
lib/crunchrun/crunchrun_test.go