File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ public void testLastErrorWithConcern()
56
56
_db .resetError ();
57
57
CommandResult cr = _db .getLastError (WriteConcern .FSYNC_SAFE );
58
58
assert (cr .get ("err" ) == null );
59
- assert (cr .containsField ("fsyncFiles" ));
59
+ assert (cr .containsField ("fsyncFiles" ) || cr . containsField ( "waited" ) );
60
60
}
61
61
62
62
@ Test
Original file line number Diff line number Diff line change @@ -610,7 +610,7 @@ public void testWriteResultWithGetLastErrorWithDifferentConcerns(){
610
610
611
611
CommandResult cr = res .getLastError ( WriteConcern .FSYNC_SAFE );
612
612
assertEquals ( 1 , cr .getInt ( "n" ) );
613
- assertTrue ( cr .containsField ( "fsyncFiles" ));
613
+ assertTrue ( cr .containsField ( "fsyncFiles" ) || cr . containsField ( "waited" ) );
614
614
615
615
CommandResult cr2 = res .getLastError ( WriteConcern .FSYNC_SAFE );
616
616
assertTrue ( cr == cr2 );
You can’t perform that action at this time.
0 commit comments