Skip to content

Commit

Permalink
Merge pull request #2336 from RafalSkolasinski/fix/test/flakiness
Browse files Browse the repository at this point in the history
fix python test microservice flakiness
  • Loading branch information
RafalSkolasinski authored Aug 28, 2020
2 parents 9bba1ad + a9734f5 commit 043cf86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,6 @@ def _get_return_code(self):

def __exit__(self, exc_type, exc_val, exc_tb):
if self.p:
group_id = os.getpgid(self.p.pid)
# Kill the entire process groups (including subprocesses of self.p)
os.killpg(os.getpgid(self.p.pid), signal.SIGTERM)
os.killpg(group_id, signal.SIGKILL)

0 comments on commit 043cf86

Please sign in to comment.