Skip to content

Commit 05cf90c

Browse files
committed
RATIS-2294. Fix Flaky test RaftAsyncTests#StaleReadAsync & RaftAsyncTests#testStateMachineMetrics.
1 parent 9f4566e commit 05cf90c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ratis-server/src/test/java/org/apache/ratis/RaftBasicTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ public void testStateMachineMetrics() throws Exception {
457457

458458
static void runTestStateMachineMetrics(boolean async, MiniRaftCluster cluster) throws Exception {
459459
RaftServer.Division leader = waitForLeader(cluster);
460-
try (final RaftClient client = cluster.createClient(leader.getPeer().getId())) {
460+
try (final RaftClient client = cluster.createClient(leader.getId())) {
461461
Gauge appliedIndexGauge = getStatemachineGaugeWithName(leader,
462462
STATEMACHINE_APPLIED_INDEX_GAUGE);
463463
Gauge smAppliedIndexGauge = getStatemachineGaugeWithName(leader,

0 commit comments

Comments
 (0)