summaryrefslogtreecommitdiff
path: root/jstests/views
diff options
context:
space:
mode:
authorGeert Bosch <geert@mongodb.com>2016-08-18 19:36:15 +0100
committerGeert Bosch <geert@mongodb.com>2016-08-22 17:04:08 +0100
commitc14515630a02136b60e49c8e15e7135cf8153497 (patch)
tree057758a3c991dc988f75e4df6a0e61789ad3f3e7 /jstests/views
parente576de40f3629649c453f437ad18a2a86b433509 (diff)
downloadmongo-c14515630a02136b60e49c8e15e7135cf8153497.tar.gz
SERVER-24771 Use view namespace in cursors for aggregate/getMore
Diffstat (limited to 'jstests/views')
-rw-r--r--jstests/views/views_basic.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/jstests/views/views_basic.js b/jstests/views/views_basic.js
index b5459380f07..d6032b105df 100644
--- a/jstests/views/views_basic.js
+++ b/jstests/views/views_basic.js
@@ -14,7 +14,9 @@
assert.commandWorked(res);
let cursor = new DBCommandCursor(db.getMongo(), res, 5);
- assert(arrayEq(cursor.toArray(), expected));
+ let actual = cursor.toArray();
+ assert(arrayEq(actual, expected),
+ "actual: " + tojson(cursor.toArray()) + ", expected:" + tojson(expected));
};
// Insert some control documents.