Fix race condition in Node Manager shutdown tests.
authorBrett Smith <brett@curoverse.com>
Wed, 29 Oct 2014 18:22:16 +0000 (14:22 -0400)
committerBrett Smith <brett@curoverse.com>
Wed, 29 Oct 2014 18:22:16 +0000 (14:22 -0400)
commit9ee4a125d1796dd7b71ef1b9f255133e5cf0becc
tree8b48cd5053b4310ab886b99ac9653bc9855fcc58
parent5560cdf37024ba98bb0367a65bc2176c1577496b
Fix race condition in Node Manager shutdown tests.

ComputeNodeMonitorActor considers a shutdown when it's initialized.
Blocking on the subscription we send ensures that message is fully
processed before the tests continue.  This is important because
several of them change the shutdown state immediately after, and that
might be seen by the internal shutdown consideration without this.

No issue #, but see
<https://ci.curoverse.com/job/arvados-api-server/1027/console>.
services/nodemanager/tests/test_computenode.py