From 4a2295373f5e997bbd65eee664c80bd3f1e53c62 Mon Sep 17 00:00:00 2001 From: Jake Moshenko <jake.moshenko@coreos.com> Date: Tue, 23 Dec 2014 15:35:34 -0500 Subject: [PATCH] Fix tests for no timeout watches. --- test/test_buildman.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test_buildman.py b/test/test_buildman.py index e33adccbd..0d0b6ced2 100644 --- a/test/test_buildman.py +++ b/test/test_buildman.py @@ -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)