summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2010-02-25 21:21:00 -0800
committerAaron <aaron@10gen.com>2010-02-25 21:21:00 -0800
commit1d82d20390804309258cd6d8fffd7f62c4accce6 (patch)
tree5055adc912854793efea175def1a1e523fa533bc
parentde365ac8eb96572003bd158d098916272b68eb75 (diff)
downloadmongo-1d82d20390804309258cd6d8fffd7f62c4accce6.tar.gz
CS-6 update unit test
-rw-r--r--dbtests/querytests.cpp12
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() );
}
};