Commit 88b4e13
authored
Fix flaky test TestClusterJoinAndReconnect/TestTLSConnection again (#4635)
Two commits have already merged in order to address the flakiness of this test.
However, I can still reproduce the issue using:
```sh
go test -failfast -run "TestClusterJoinAndReconnect/TestJoinLeave" -count 600 ./cluster
```
An easy way to increase the failure rate is to increase CPU load, e.g.,
```sh
yes > /dev/null &; yes > /dev/null &; yes > /dev/null &; yes > /dev/null &
```
On my machine the combination of these commands fails every time.
The underlying reason for the failure is that the test only waits for
`p2` to be ready, but this does not reflect whether `p` has updated its
memberlist. The test now retries the assertions in question using
`Eventually`.
Fixes #3287
Signed-off-by: Solomon Jacobs <solomonjacobs@protonmail.com>
Don't modify cluster for TestClusterJoinAndReconnect/TestTLSConnection1 parent 7d6cebe commit 88b4e13
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| |||
0 commit comments