Fix tests for no timeout watches.

This commit is contained in:
Jake Moshenko 2014-12-23 15:35:34 -05:00
parent 2f2a88825d
commit 4a2295373f

View file

@ -124,7 +124,8 @@ class TestEphemeral(unittest.TestCase):
@async_test
def test_expiring_worker(self):
# Test that we are watching before anything else happens
self.etcd_client_mock.watch.assert_called_once_with(ETCD_BUILDER_PREFIX, recursive=True)
self.etcd_client_mock.watch.assert_called_once_with(ETCD_BUILDER_PREFIX, recursive=True,
timeout=0)
# Send a signal to the callback that a worker has expired
expired_result = Mock(spec=etcd.EtcdResult)