Commit 630e02f
authored
fix: reduce sleep time in timeout tests and add elapsed time checks (#111)
- Changed sleep duration from 1000s (16 minutes) to 10s in both timeout tests
- Added elapsed time assertions to verify tests complete within 2 seconds
- Prevents CI jobs from hanging due to background threads sleeping for too long
- Ensures tests verify that the calling thread returns immediately after timeout1 parent 1f60746 commit 630e02f
File tree
1 file changed
+21
-4
lines changed- tests/unit/task_processor
1 file changed
+21
-4
lines changedLines changed: 21 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| 124 | + | |
124 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
125 | 134 | | |
126 | | - | |
127 | 135 | | |
128 | 136 | | |
129 | 137 | | |
| |||
160 | 168 | | |
161 | 169 | | |
162 | 170 | | |
163 | | - | |
| 171 | + | |
164 | 172 | | |
165 | 173 | | |
166 | 174 | | |
167 | 175 | | |
168 | 176 | | |
169 | 177 | | |
| 178 | + | |
170 | 179 | | |
| 180 | + | |
171 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
172 | 190 | | |
173 | | - | |
174 | 191 | | |
175 | 192 | | |
176 | 193 | | |
| |||
0 commit comments