Skip to content

Commit

Permalink
Update TestMemberAdd's context timeout by adding 5 more seconds
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Wang <[email protected]>
  • Loading branch information
ahrtr committed Dec 9, 2024
1 parent 801dfc3 commit 99be181
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/common/member_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,11 @@ func TestMemberAdd(t *testing.T) {
for _, quorumTc := range quorumTcs {
for _, clusterTc := range clusterTestCases() {
t.Run(learnerTc.name+"/"+quorumTc.name+"/"+clusterTc.name, func(t *testing.T) {
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
ctxTimeout := 10 * time.Second
if quorumTc.waitForQuorum {
ctxTimeout += etcdserver.HealthInterval
}
ctx, cancel := context.WithTimeout(context.Background(), ctxTimeout)
defer cancel()
c := clusterTc.config
c.StrictReconfigCheck = quorumTc.strictReconfigCheck
Expand Down

0 comments on commit 99be181

Please sign in to comment.