Skip to content

Commit bf23750

Browse files
committed
Accounting for the randomness of random.
1 parent 2f3d177 commit bf23750

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/com/mongodb/ReplicaSetStatusDomainModelTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public void testReplicaSet() throws Exception {
119119
assertNotNull(addr);
120120
counters.get(addr.getHost()).incrementAndGet();
121121
}
122-
assertLess(((getHigh(counters) - getLow(counters)) / (double) getHigh(counters)), .03);
122+
assertLess(((getHigh(counters) - getLow(counters)) / (double) getHigh(counters)), .05);
123123

124124
// test getting a secondary by multiple tags
125125
List<ReplicaSetStatus.Tag> twoTagsList = new ArrayList<ReplicaSetStatus.Tag>();
@@ -148,7 +148,7 @@ public void testReplicaSet() throws Exception {
148148
assertNotNull(addr);
149149
counters.get(addr.getHost()).incrementAndGet();
150150
}
151-
assertLess(((getHigh(counters) - getLow(counters)) / (double) getHigh(counters)), .04);
151+
assertLess(((getHigh(counters) - getLow(counters)) / (double) getHigh(counters)), .05);
152152
}
153153

154154
@Test(expectedExceptions = MongoException.class)

0 commit comments

Comments
 (0)