Commit fd28e9c
test(controller): fix flaky config sync gate test via cache-sync wait (#389)
The test asserted on operator's cached client without waiting for its
informer cache to observe a CM created via the direct k8sClient,
causing an intermittent race. Added an Eventually() wait on the same
read path UpsertConfigmaps uses before asserting.
Fixes #357
Signed-off-by: Mohit Yadav <ymohit799057@gmail.com>
Co-authored-by: Brian Lockwood <lockwobr@gmail.com>1 parent b62dadd commit fd28e9c
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1866 | 1866 | | |
1867 | 1867 | | |
1868 | 1868 | | |
| 1869 | + | |
| 1870 | + | |
| 1871 | + | |
| 1872 | + | |
| 1873 | + | |
| 1874 | + | |
| 1875 | + | |
| 1876 | + | |
1869 | 1877 | | |
1870 | 1878 | | |
1871 | 1879 | | |
| |||
0 commit comments