Skip to content

Commit

Permalink
tests: fix test, remove unused equals
Browse files Browse the repository at this point in the history
  • Loading branch information
fangtiecheng committed Jun 25, 2024
1 parent 4ca53f5 commit 7ceaca9
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,12 @@ public void testToStringParseWithSpace() {
assertTrue(peer.toString().startsWith("localhost:80"));
}
assertFalse(conf.isEmpty());
assertEquals(confStr, conf.toString());
final Configuration newConf = new Configuration();
assertTrue(newConf.parse(conf.toString()));
assertEquals(3, newConf.getPeerSet().size());
assertTrue(newConf.contains(new PeerId("localhost", 8081)));
assertTrue(newConf.contains(new PeerId("localhost", 8082)));
assertTrue(newConf.contains(new PeerId("localhost", 8083)));
assertEquals(confStr, newConf.toString());
assertEquals(conf.hashCode(), newConf.hashCode());
assertEquals(conf, newConf);
}

@Test
Expand Down

0 comments on commit 7ceaca9

Please sign in to comment.