Skip to content

Commit 235338a

Browse files
committed
fix tests to work with --dur
1 parent 1837cae commit 235338a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/com/mongodb/ErrorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public void testLastErrorWithConcern()
5656
_db.resetError();
5757
CommandResult cr = _db.getLastError(WriteConcern.FSYNC_SAFE);
5858
assert(cr.get("err") == null);
59-
assert(cr.containsField("fsyncFiles"));
59+
assert(cr.containsField("fsyncFiles") || cr.containsField("waited"));
6060
}
6161

6262
@Test

src/test/com/mongodb/JavaClientTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ public void testWriteResultWithGetLastErrorWithDifferentConcerns(){
610610

611611
CommandResult cr = res.getLastError( WriteConcern.FSYNC_SAFE );
612612
assertEquals( 1 , cr.getInt( "n" ) );
613-
assertTrue( cr.containsField( "fsyncFiles" ));
613+
assertTrue( cr.containsField( "fsyncFiles" ) || cr.containsField( "waited" ));
614614

615615
CommandResult cr2 = res.getLastError( WriteConcern.FSYNC_SAFE );
616616
assertTrue( cr == cr2 );

0 commit comments

Comments
 (0)