Fix signal handlers by moving shutdown logic out of handler.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
ea8cc1c3dc
commit
778c213dfc
4 changed files with 40 additions and 28 deletions
|
|
@ -86,7 +86,8 @@ class ContainerStateCondition(object):
|
|||
return False
|
||||
|
||||
def __str__(self):
|
||||
return "waiting for container to have state %s" % self.expected
|
||||
state = 'running' if self.running else 'stopped'
|
||||
return "waiting for container to be %s" % state
|
||||
|
||||
|
||||
class CLITestCase(DockerClientTestCase):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue