Skip to content

Commit

Permalink
Fix: ServerDescriptionTest.testDefaults
Browse files Browse the repository at this point in the history
Ensure latest time is greater or equal to the test time.

JAVA-3877
  • Loading branch information
rozza authored and jyemin committed Apr 12, 2022
1 parent b8c6654 commit d7acfc6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public void testDefaults() throws UnknownHostException {
assertNull(serverDescription.getElectionId());
assertNull(serverDescription.getSetVersion());
assertNull(serverDescription.getLastWriteDate());
assertTrue(serverDescription.getLastUpdateTime(TimeUnit.NANOSECONDS) > currentNanoTime);
assertTrue(serverDescription.getLastUpdateTime(TimeUnit.NANOSECONDS) >= currentNanoTime);
assertNull(serverDescription.getLogicalSessionTimeoutMinutes());
assertNull(serverDescription.getException());
}
Expand Down

0 comments on commit d7acfc6

Please sign in to comment.