Commit d891a5f
committed
allocator: fix flake in TestWatchRemoteKVStore
The TestWatchRemoteKVStore test is currently affected by a potential
source of flakiness because it directly asserts that the cache is
synchronized after validating that it has been registered. However,
the two operations are performed independently, and the on-sync
callback handler is invoked after having released the lock, which
implies that it may not have been invoked at check time. Let's get
this fixed by wrapping the check with Eventually.
Signed-off-by: Marco Iorio <marco.iorio@isovalent.com>1 parent 03d1726 commit d891a5f
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
584 | 584 | | |
585 | 585 | | |
586 | 586 | | |
587 | | - | |
588 | | - | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
589 | 592 | | |
590 | 593 | | |
591 | 594 | | |
| |||
0 commit comments