Skip to content

Commit

Permalink
Extend test_fork_with_thread coverage
Browse files Browse the repository at this point in the history
Try sending metric from the child process. This makes sure that all
locks are still in a serviceable state after the fork.
  • Loading branch information
vickenty committed Aug 16, 2024
1 parent 4a6146b commit 7ed936c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/integration/dogstatsd/test_statsd_fork.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def test_fork_with_thread(disable_background_sender, disable_buffering, sender_f

pid = os.fork()
if pid == 0:
statsd.gauge("spam", 2)
os._exit(42)

assert pid > 0
Expand Down

0 comments on commit 7ed936c

Please sign in to comment.