3609: Inherit --retries from _util. Be more specific about error being caught. ...
[arvados.git] / services / nodemanager / tests / test_jobqueue.py
index 3814ba4610a3db416c01d5e3ddb2c5d31de435b2..b27f69f15c2431493a49ecb5daf09f50ea710187 100644 (file)
@@ -63,8 +63,8 @@ class JobQueueMonitorActorTestCase(testutil.RemotePollLoopActorTestMixin,
 
     def test_subscribers_get_server_lists(self):
         self.build_monitor([{'items': [1, 2]}], self.MockCalculator())
-        self.monitor.subscribe(self.subscriber)
-        self.wait_for_call(self.subscriber)
+        self.monitor.subscribe(self.subscriber).get(self.TIMEOUT)
+        self.stop_proxy(self.monitor)
         self.subscriber.assert_called_with([testutil.MockSize(1),
                                             testutil.MockSize(2)])