15942: Fix race in test case.
authorTom Clegg <tom@tomclegg.ca>
Wed, 8 Jan 2020 19:53:20 +0000 (14:53 -0500)
committerTom Clegg <tom@tomclegg.ca>
Wed, 8 Jan 2020 19:53:20 +0000 (14:53 -0500)
commit3c848757efb9b1697962cb51068c87658565908b
tree30a5b03f4494fe146d94c2d71ec54f1e0b088d01
parent9d79488376e90532512733748eed1aa78af1c125
15942: Fix race in test case.

When each call to Update from the test case was starting its own
lock-update-cancel goroutine, some of these would still be
running (and attempting to cancel the container) after the test case
had succeeded and called /database/reset -- and thus cause a different
test case to fail.

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@tomclegg.ca>
lib/dispatchcloud/container/queue.go
lib/dispatchcloud/container/queue_test.go