Repository navigation
Commit 9c4d48e
authored
Fix flaky SingleThreadEventExecutorTest.testNotSuspendedUntilSchedule… (#15256)
…dTaskIsCancelled
Motivation:
The testNotSuspendedUntilScheduledTaskIsCancelled was flaky the removal
of the scheduled task from the internal task queue might be offloaded to
the eventloop and so may take a moment
Modifications:
- Change assert to loop and add a timeout
Result:
Test should not be flaky anymore1 parent aa4ef8d commit 9c4d48e
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| 149 | + | |
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
| |||
160 | 161 | | |
161 | 162 | | |
162 | 163 | | |
163 | | - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
164 | 170 | | |
165 | 171 | | |
166 | 172 | | |
| |||
0 commit comments