mongoose: fix test for read concern alias

This commit is contained in:
Hsu Ching Feng
2018-08-22 10:36:06 +08:00
committed by GitHub
parent 993499e49f
commit 6517611d4e
+1 -1
View File
@@ -1010,7 +1010,7 @@ query.find().populate('owner', 'name', null, {sort: { name: -1 }}).exec(function
kittens[0].execPopulate();
});
query.read('primary', []).read('primary');
query.readConcern('majority').read('m');
query.readConcern('majority').readConcern('m');
query.regex(/re/).regex('path', /re/);
query.remove({}, cb);
query.remove({});