Skip to content

Commit

Permalink
Add back the SystemExit
Browse files Browse the repository at this point in the history
  • Loading branch information
judahrand committed May 13, 2022
1 parent 10cbbc6 commit 0f2e9aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pipelinewise/cli/pipelinewise.py
Original file line number Diff line number Diff line change
Expand Up @@ -1316,7 +1316,7 @@ def stop_tap(self, sig=None, frame=None):
self.logger.error(
'No pidfile found at %s. Tap does not seem to be running.', pidfile_path
)
return
sys.exit(1)

# Terminate child processes
try:
Expand Down
3 changes: 1 addition & 2 deletions tests/units/cli/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,8 +624,7 @@ def test_command_stop_tap(self):
time.sleep(5)

# Send the stop_tap command
with pytest.raises(SystemExit):
pipelinewise.stop_tap()
pipelinewise.stop_tap()

# Should not have any remaining Pipelinewise related linux process
for proc in psutil.process_iter(['cmdline']):
Expand Down

0 comments on commit 0f2e9aa

Please sign in to comment.