We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 571d77e + 3ea963c commit 624f8c7Copy full SHA for 624f8c7
tests/contrib/aiohttp/test_request_safety.py
@@ -68,14 +68,13 @@ def make_requests():
68
ctx = self.tracer.get_call_context()
69
threads = [threading.Thread(target=make_requests) for _ in range(10)]
70
for t in threads:
71
- t.daemon = True
72
t.start()
73
74
- # we should yield so that this loop can handle
75
- # threads' requests
76
- yield from asyncio.sleep(0.5)
77
78
- t.join(timeout=0.5)
+ # we should yield so that this loop can handle
+ # threads' requests
+ yield from asyncio.sleep(0.1)
+ t.join(0.1)
79
80
# the trace is wrong but the Context is finished
81
traces = self.tracer.writer.pop_traces()
0 commit comments