Commit d51384c
fix(test): extend the replication wait time to prevent the flaky test (#3531)
Currently, WaitForSync only allows 5s for master_link_status to reach
"up",
which is not enough under loaded CI runners (e.g. SonarCloud coverage
builds);
Reproduced locally by running 16 background CPU burners and looping the
test:
```
for i in $(seq 1 6); do
go test -count=1 -run TestReplicationWithLimitSpeed$ \
./integration/replication/... \
-binPath=.../build/kvrocks -workspace=/tmp/kvrocks-test-ws
done
```
Before the fix: 1/6 runs failed with the same trace as the CI flake
("Condition never satisfied" at client.go:50, called from
replication_test.go:362).
After the fix: 8/8 runs pass under the same CPU load (run times 34-51s
vs. an
unloaded baseline of ~28s, confirming load was active).
Related flaky run:
https://github.com/apache/kvrocks/actions/runs/27660686644/job/81804342125
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 812386c commit d51384c
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
362 | | - | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
363 | 365 | | |
364 | 366 | | |
365 | 367 | | |
| |||
0 commit comments