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
|
|
@ -54,7 +54,7 @@ class CLIMainTestCase(unittest.TestCase):
|
|||
service_names = ['web', 'db']
|
||||
timeout = 12
|
||||
|
||||
with mock.patch('compose.cli.main.signal', autospec=True) as mock_signal:
|
||||
with mock.patch('compose.cli.main.signals.signal', autospec=True) as mock_signal:
|
||||
attach_to_logs(project, log_printer, service_names, timeout)
|
||||
|
||||
assert mock_signal.signal.mock_calls == [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue