Skip to content

Commit

Permalink
test pull/17793
Browse files Browse the repository at this point in the history
  • Loading branch information
siyuanfoundation committed Apr 21, 2024
1 parent 2674f94 commit 67debe4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
VERBOSE=1 GOOS=linux GOARCH=amd64 CPU=4 EXPECT_DEBUG=true make test-e2e-release
;;
linux-386-e2e)
VERBOSE=1 GOOS=linux GOARCH=386 CPU=4 EXPECT_DEBUG=true make test-e2e
VERBOSE=1 GOOS=linux GOARCH=386 CPU=4 EXPECT_DEBUG=true GO_TEST_FLAGS="-v --count=20 --timeout=3h" make test-e2e
;;
*)
echo "Failed to find target"
Expand Down
2 changes: 1 addition & 1 deletion server/etcdserver/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const (
StoreKeysPrefix = "/1"

// HealthInterval is the minimum time the cluster should be healthy
// before accepting add member requests.
// before accepting add and delete member requests.
HealthInterval = 5 * time.Second

purgeFileInterval = 30 * time.Second
Expand Down
5 changes: 3 additions & 2 deletions tests/common/member_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ func TestMemberRemove(t *testing.T) {
continue
}
t.Run(quorumTc.name+"/"+clusterTc.name, func(t *testing.T) {
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
ctx, cancel := context.WithTimeout(context.Background(), 14*time.Second)
defer cancel()
c := clusterTc.config
c.StrictReconfigCheck = quorumTc.strictReconfigCheck
Expand All @@ -207,7 +207,8 @@ func TestMemberRemove(t *testing.T) {

testutils.ExecuteUntil(ctx, t, func() {
if quorumTc.waitForQuorum {
time.Sleep(etcdserver.HealthInterval)
// wait for health interval + leader election
time.Sleep(etcdserver.HealthInterval + 2*time.Second)
}

memberID, clusterID := memberToRemove(ctx, t, cc, c.ClusterSize)
Expand Down

0 comments on commit 67debe4

Please sign in to comment.