Commit 4159bed
committed
[iris] Isolate per-test ThreadContainer to drop 5s controller test teardowns
Controller tests under lib/iris/tests/cluster/controller that construct a
Controller without calling .stop() leak the non-daemon log-server uvicorn
thread, tripping the top-level _thread_cleanup autouse fixture's 5s wait.
Install thread_container_scope as an autouse fixture so the container's
on_stop hook signals server.should_exit and the thread exits immediately.
Fixes #48721 parent 8400841 commit 4159bed
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
112 | 113 | | |
113 | 114 | | |
114 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
115 | 127 | | |
116 | 128 | | |
117 | 129 | | |
| |||
0 commit comments