Skip to content

Commit

Permalink
Merge pull request #19032 from ahrtr/memberadd_test_20241209
Browse files Browse the repository at this point in the history
Update TestMemberAdd's context timeout by adding 5 more seconds
  • Loading branch information
ahrtr authored Dec 9, 2024
2 parents 801dfc3 + 99be181 commit 854bdd6
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 854bdd6

Please sign in to comment.