Merge pull request #19032 from ahrtr/memberadd_test_20241209

Update TestMemberAdd's context timeout by adding 5 more seconds
This commit is contained in:
Benjamin Wang 2024-12-09 12:34:24 +00:00 committed by GitHub
commit 854bdd646c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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