Commit 79d3dcf
committed
wtclient: fix race conditions locking tests
This commit fixes two flaky test scenarios:
1. testRemoveLockedAddr: Add synchronization to wait for the dial to
start before asserting that the address is locked. Previously, the
test could race and check the lock state before session negotiation
began.
2. testTowerSwitch: Use wait.Predicate for RemoveTower since the
address may still be locked by an active session, causing
intermittent failures.1 parent 7b8c69e commit 79d3dcf
1 file changed
Lines changed: 21 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1811 | 1811 | | |
1812 | 1812 | | |
1813 | 1813 | | |
| 1814 | + | |
1814 | 1815 | | |
1815 | 1816 | | |
| 1817 | + | |
1816 | 1818 | | |
1817 | 1819 | | |
1818 | 1820 | | |
| |||
1847 | 1849 | | |
1848 | 1850 | | |
1849 | 1851 | | |
| 1852 | + | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
| 1860 | + | |
1850 | 1861 | | |
1851 | 1862 | | |
1852 | 1863 | | |
| |||
2354 | 2365 | | |
2355 | 2366 | | |
2356 | 2367 | | |
2357 | | - | |
2358 | | - | |
2359 | | - | |
2360 | | - | |
| 2368 | + | |
| 2369 | + | |
| 2370 | + | |
| 2371 | + | |
| 2372 | + | |
| 2373 | + | |
| 2374 | + | |
| 2375 | + | |
| 2376 | + | |
| 2377 | + | |
2361 | 2378 | | |
2362 | 2379 | | |
2363 | 2380 | | |
| |||
0 commit comments