You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In TestOrphanCIDRsAfterRestart we upsert different revisions of the node
to test how the node handler reacts to the presence of orphan CIDRs
after an operator restart. Since the node handler uses a controller
internally, we have to be a bit more careful while asserting the
expected results in order to avoid races. Therefore:
- copy the node before updating Spec.IPAM.Pools.Requested
- rely on assert.Eventually to wait for the controller to run
- assert that the controller runs as expected waiting on the CiliumNode
status update
using stress, the multipool package tests run successfully for over 5000
runs with the race detector enabled:
```
go test -race -c ./pkg/ipam/allocator/multipool/...
stress ./multipool.test -test.shuffle=on
...
4m15s: 5326 runs so far, 0 failures, 24 active
```
Signed-off-by: Fabio Falzoi <fabio.falzoi@isovalent.com>
0 commit comments