Repository navigation
Commit e5811a3
authored
Wait for a window title to be written before replacing it in a test (#1824)
test_instance_titles_do_not_cross_between_concurrent_select_menus sets the
title "B" while the second menu is running and then, once the first menu
has finished, "B active". A title set during a prompt is written by a
callback on the prompt's event loop, and a title set before that callback
runs replaces it. Nothing made the second menu's loop run before "B active"
was set, so under load "B" was never written and the test failed.
Wait for the second menu's loop to get past the callback before going on.1 parent fa81c19 commit e5811a3
1 file changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
| 213 | + | |
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
| 218 | + | |
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
234 | 241 | | |
235 | 242 | | |
236 | 243 | | |
237 | 244 | | |
238 | 245 | | |
239 | | - | |
| 246 | + | |
240 | 247 | | |
241 | 248 | | |
242 | 249 | | |
| |||
0 commit comments