Skip to content

Commit 13edab5

Browse files
committed
update test
1 parent bfe6ee7 commit 13edab5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/client/test_factory.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,8 @@ def synchronize_config(*_):
583583
assert clear_impressions._called == 1
584584
assert clear_events._called == 1
585585
factory.destroy()
586+
time.sleep(0.1)
587+
assert factory.destroyed
586588

587589
def test_error_prefork(self, mocker):
588590
"""Test not handling fork."""
@@ -645,6 +647,8 @@ def synchronize_config(*_):
645647
pass
646648
assert factory.ready
647649
factory.destroy()
650+
time.sleep(0.1)
651+
assert factory.destroyed
648652

649653
def test_destroy_with_event_pluggable(self, mocker):
650654
config = {
@@ -700,7 +704,8 @@ def synchronize_config(*_):
700704

701705
assert factory._status == Status.WAITING_FORK
702706
factory.destroy()
703-
707+
time.sleep(0.1)
708+
assert factory.destroyed
704709

705710
class SplitFactoryAsyncTests(object):
706711
"""Split factory async test cases."""

0 commit comments

Comments
 (0)