Commit 4380117
Fix potential race condition in concurrent reconciliation test
Move assertion out of goroutines to avoid panic from calling t.FailNow()
in non-test goroutine. Collect errors via channel and check them in the
main test goroutine.
Filter out 409 conflict errors which are expected when multiple goroutines
concurrently update the same resource status in the fake client.
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>1 parent acadaca commit 4380117
1 file changed
Lines changed: 15 additions & 6 deletions
Lines changed: 15 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
1266 | 1267 | | |
1267 | 1268 | | |
1268 | 1269 | | |
1269 | | - | |
| 1270 | + | |
1270 | 1271 | | |
1271 | 1272 | | |
1272 | 1273 | | |
1273 | | - | |
1274 | | - | |
1275 | | - | |
| 1274 | + | |
1276 | 1275 | | |
1277 | 1276 | | |
1278 | 1277 | | |
1279 | | - | |
| 1278 | + | |
| 1279 | + | |
1280 | 1280 | | |
1281 | | - | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
1282 | 1288 | | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
1283 | 1292 | | |
1284 | 1293 | | |
1285 | 1294 | | |
| |||
0 commit comments