Move converge() to a test module, and use a short timeout for tests.
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
This commit is contained in:
parent
c24d5380e6
commit
06db577105
7 changed files with 69 additions and 52 deletions
|
|
@ -246,7 +246,7 @@ class ServiceTest(unittest.TestCase):
|
|||
service.image = lambda: {'Id': 'abc123'}
|
||||
new_container = service.recreate_container(mock_container)
|
||||
|
||||
mock_container.stop.assert_called_once_with()
|
||||
mock_container.stop.assert_called_once_with(timeout=10)
|
||||
self.mock_client.rename.assert_called_once_with(
|
||||
mock_container.id,
|
||||
'%s_%s' % (mock_container.short_id, mock_container.name))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue