Skip to content

Commit aa59294

Browse files
committed
Remove redundant raft leader check
1 parent 52e6cd7 commit aa59294

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

adapter/test_util.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,6 @@ func waitForNodeListeners(t *testing.T, ctx context.Context, nodes []Node, waitT
149149

150150
func waitForRaftReadiness(t *testing.T, nodes []Node, waitTimeout, waitInterval time.Duration) {
151151
t.Helper()
152-
assert.Eventually(t, func() bool {
153-
return nodes[0].raft.State() == raft.Leader
154-
}, waitTimeout, waitInterval)
155152

156153
expectedLeader := raft.ServerAddress(nodes[0].raftAddress)
157154
assert.Eventually(t, func() bool {

0 commit comments

Comments
 (0)