Skip to content

Commit 1d82d20

Browse files
committed
CS-6 update unit test
1 parent de365ac commit 1d82d20

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

dbtests/querytests.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -288,13 +288,13 @@ namespace QueryTests {
288288
}
289289
void run() {
290290
const char *ns = "unittests.querytests.OplogReplayMode";
291-
insert( ns, BSON( "a" << 3 ) );
292-
insert( ns, BSON( "a" << 0 ) );
293-
insert( ns, BSON( "a" << 1 ) );
294-
insert( ns, BSON( "a" << 2 ) );
295-
auto_ptr< DBClientCursor > c = client().query( ns, QUERY( "a" << GT << 1 ).hint( BSON( "$natural" << 1 ) ), 0, 0, 0, Option_OplogReplay );
291+
insert( ns, BSON( "ts" << 3 ) );
292+
insert( ns, BSON( "ts" << 0 ) );
293+
insert( ns, BSON( "ts" << 1 ) );
294+
insert( ns, BSON( "ts" << 2 ) );
295+
auto_ptr< DBClientCursor > c = client().query( ns, QUERY( "ts" << GT << 1 ).hint( BSON( "$natural" << 1 ) ), 0, 0, 0, Option_OplogReplay );
296296
ASSERT( c->more() );
297-
ASSERT_EQUALS( 2, c->next().getIntField( "a" ) );
297+
ASSERT_EQUALS( 2, c->next().getIntField( "ts" ) );
298298
ASSERT( !c->more() );
299299
}
300300
};

0 commit comments

Comments
 (0)