File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ public void testSecondaryReadCursor() throws Exception {
83
83
84
84
final DBCollection col = loadCleanDbCollection (mongo );
85
85
86
- insertTestData (col , new WriteConcern (getSecondaryCount (testHosts ) + 1 ));
86
+ insertTestData (col , new WriteConcern (getSecondaryCount (testHosts ) + 1 , 10000 ));
87
87
88
88
// Get the opcounter/query data for the hosts.
89
89
loadQueryCount (testHosts , true );
@@ -209,7 +209,7 @@ private DB getDatabase(final Mongo pMongo) {
209
209
private void insertTestData (final DBCollection pCol , WriteConcern writeConcern ) throws Exception {
210
210
// Insert some test data.
211
211
for (int idx =0 ; idx < 1000 ; idx ++) {
212
- WriteConcern curWriteConcern = idx == 999 ? WriteConcern .NONE : writeConcern ;
212
+ WriteConcern curWriteConcern = ( idx < 999 ) ? WriteConcern .NONE : writeConcern ;
213
213
WriteResult writeResult = pCol .insert (new BasicDBObject (), curWriteConcern );
214
214
writeResult .getLastError ().throwOnError ();
215
215
}
You can’t perform that action at this time.
0 commit comments