PYTHON-5167 Properly cleanup test SpecRunnerTask (#2181)
This commit is contained in:
parent
74b85d51d5
commit
baf0344446
@ -384,6 +384,7 @@ class EntityMapUtil:
|
||||
name = spec["id"]
|
||||
thread = SpecRunnerTask(name)
|
||||
await thread.start()
|
||||
self.test.addAsyncCleanup(thread.join, 5)
|
||||
self[name] = thread
|
||||
return
|
||||
|
||||
|
||||
@ -383,6 +383,7 @@ class EntityMapUtil:
|
||||
name = spec["id"]
|
||||
thread = SpecRunnerThread(name)
|
||||
thread.start()
|
||||
self.test.addCleanup(thread.join, 5)
|
||||
self[name] = thread
|
||||
return
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user