Skip to content

Commit bc9a820

Browse files
Remove redundant parameter. (#147)
1 parent 76a4feb commit bc9a820

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/io/openmessaging/storage/dledger/protocol/VoteRequestTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public void testVoteNormal() throws Exception {
115115
@Test
116116
public void testVoteTermSmallThanLedger() throws Exception {
117117
String group = UUID.randomUUID().toString();
118-
String peers = String.format("n0-localhost:%d", nextPort(), nextPort());
118+
String peers = String.format("n0-localhost:%d", nextPort());
119119
DLedgerServer leader = launchServer(group, peers, "n0");
120120
Thread.sleep(1000);
121121
Assertions.assertTrue(leader.getMemberState().isLeader());
@@ -148,7 +148,7 @@ public void testVoteTermSmallThanLedger() throws Exception {
148148
@Test
149149
public void testVoteAlreadyVoted() throws Exception {
150150
String group = UUID.randomUUID().toString();
151-
String peers = String.format("n0-localhost:%d", nextPort(), nextPort());
151+
String peers = String.format("n0-localhost:%d", nextPort());
152152
DLedgerServer leader = launchServer(group, peers, "n0");
153153
Thread.sleep(1000);
154154
Assertions.assertTrue(leader.getMemberState().isLeader());

0 commit comments

Comments
 (0)