Commit 0e029e6
committed
Fix race conditions in unit tests
The tests were not correct to begin with, and a change in the
`assert.Eventually` implementation exposed the bug:
stretchr/testify#1427
Signed-off-by: Antonin Bas <[email protected]>1 parent 64994d5 commit 0e029e6
File tree
2 files changed
+12
-3
lines changed- pkg
- agent/ipassigner/linkmonitor
- apiserver/registry/system/supportbundle
2 files changed
+12
-3
lines changedLines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
| 280 | + | |
| 281 | + | |
280 | 282 | | |
281 | 283 | | |
282 | 284 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
115 | 119 | | |
116 | 120 | | |
117 | 121 | | |
| |||
154 | 158 | | |
155 | 159 | | |
156 | 160 | | |
157 | | - | |
158 | | - | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
159 | 166 | | |
160 | 167 | | |
161 | 168 | | |
| |||
0 commit comments