Skip to content

Commit

Permalink
SERVER-6400: change error codes agg is expecting
Browse files Browse the repository at this point in the history
  • Loading branch information
erh committed May 20, 2013
1 parent a6323b8 commit a90e55c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion jstests/aggregation/bugs/match.js
Expand Up @@ -42,7 +42,7 @@ function assertResults( expectedResults, matchSpec ) {
}

// Invalid matcher syntax.
assertError( 10073, { a:{ $mod:[ 0 /* invalid */, 0 ] } } );
assertError( 16810, { a:{ $mod:[ 0 /* invalid */, 0 ] } } );

// $where not allowed.
assertError( 16395, { $where:'true' } );
Expand Down
1 change: 1 addition & 0 deletions jstests/aggregation/bugs/server7768.js
@@ -1,5 +1,6 @@
// SEVER-7768 aggregate cmd shouldn't fail when $readPreference is specified
collection = 'server7768';
db[collection].drop();
db[collection].insert({foo:1});
// Can't use aggregate helper here because we need to add $readPreference flag
res = db.runCommand({ 'aggregate': collection
Expand Down

0 comments on commit a90e55c

Please sign in to comment.