Skip to content

Commit

Permalink
test: ensure the test case TestCtlV3ConsistentMemberList to be more r…
Browse files Browse the repository at this point in the history
…obust

forcibly restart the etcd process to persist all data

Signed-off-by: Benjamin Wang <[email protected]>
  • Loading branch information
ahrtr committed Sep 28, 2023
1 parent 353b10f commit 7590dfe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/e2e/ctl_v3_member_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ func TestCtlV3ConsistentMemberList(t *testing.T) {
require.NoError(t, err)
t.Logf("Added and then removed a learner with ID: %x", resp.Member.ID)

t.Log("Restarting the etcd process to ensure all data is persisted")
err = epc.Procs[0].Restart(context.TODO())
require.NoError(t, err)

var wg sync.WaitGroup
wg.Add(2)
stopc := make(chan struct{}, 2)
Expand Down

0 comments on commit 7590dfe

Please sign in to comment.