Commit c298f2e
operator/bgpv2: Avoid race in TestRouterIDAllocation test
Workaround conceptual race between resource.Events and resource.Store,
where store can contain outdated resource version even after receiving
an event for the new version. In this case, after upserting a change in
BGPCC, the old version of BGPCC was present in the store during the
reconciliation triggered by this change in about 2% of the test runs.
Signed-off-by: Rastislav Szabo <rastislav.szabo@isovalent.com>1 parent b1d70aa commit c298f2e
1 file changed
Lines changed: 9 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1568 | 1568 | | |
1569 | 1569 | | |
1570 | 1570 | | |
1571 | | - | |
1572 | | - | |
1573 | | - | |
1574 | | - | |
1575 | | - | |
1576 | | - | |
1577 | | - | |
| 1571 | + | |
1578 | 1572 | | |
| 1573 | + | |
| 1574 | + | |
| 1575 | + | |
| 1576 | + | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
| 1580 | + | |
1579 | 1581 | | |
1580 | 1582 | | |
1581 | 1583 | | |
| |||
0 commit comments