Merge pull request #16671 from ahrtr/member_test_20230930

test: fix the TestCtlV3ConsistentMemberList: set the wait-cluster-ready-timeout as 1ns
This commit is contained in:
Benjamin Wang 2023-09-30 15:28:38 +01:00 committed by GitHub
commit 0c0128aad4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,7 +69,7 @@ func TestCtlV3ConsistentMemberList(t *testing.T) {
epc, err := e2e.NewEtcdProcessCluster(ctx, t,
e2e.WithClusterSize(1),
e2e.WithWaitClusterReadyTimeout(0),
e2e.WithWaitClusterReadyTimeout(1*time.Nanosecond),
e2e.WithEnvVars(map[string]string{"GOFAIL_FAILPOINTS": `beforeApplyOneConfChange=sleep("2s")`}),
)
require.NoError(t, err, "failed to start etcd cluster: %v", err)