diff options
-rw-r--r-- | dbtests/querytests.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/dbtests/querytests.cpp b/dbtests/querytests.cpp index fc4ddd6fbd9..cd192da5b57 100644 --- a/dbtests/querytests.cpp +++ b/dbtests/querytests.cpp @@ -288,13 +288,13 @@ namespace QueryTests { } void run() { const char *ns = "unittests.querytests.OplogReplayMode"; - insert( ns, BSON( "a" << 3 ) ); - insert( ns, BSON( "a" << 0 ) ); - insert( ns, BSON( "a" << 1 ) ); - insert( ns, BSON( "a" << 2 ) ); - auto_ptr< DBClientCursor > c = client().query( ns, QUERY( "a" << GT << 1 ).hint( BSON( "$natural" << 1 ) ), 0, 0, 0, Option_OplogReplay ); + insert( ns, BSON( "ts" << 3 ) ); + insert( ns, BSON( "ts" << 0 ) ); + insert( ns, BSON( "ts" << 1 ) ); + insert( ns, BSON( "ts" << 2 ) ); + auto_ptr< DBClientCursor > c = client().query( ns, QUERY( "ts" << GT << 1 ).hint( BSON( "$natural" << 1 ) ), 0, 0, 0, Option_OplogReplay ); ASSERT( c->more() ); - ASSERT_EQUALS( 2, c->next().getIntField( "a" ) ); + ASSERT_EQUALS( 2, c->next().getIntField( "ts" ) ); ASSERT( !c->more() ); } }; |