@@ -1373,7 +1373,7 @@ describe('Query', function() {
1373
1373
} ) ;
1374
1374
1375
1375
describe ( 'setOptions' , function ( ) {
1376
- it ( 'works' , async function ( ) {
1376
+ it ( 'works' , function ( ) {
1377
1377
const q = new Query ( ) ;
1378
1378
q . setOptions ( { thing : 'cat' } ) ;
1379
1379
q . setOptions ( { populate : [ 'fans' ] } ) ;
@@ -1397,16 +1397,6 @@ describe('Query', function() {
1397
1397
assert . equal ( q . options . hint . index2 , - 1 ) ;
1398
1398
assert . equal ( q . options . readPreference . mode , 'secondary' ) ;
1399
1399
assert . equal ( q . options . readPreference . tags [ 0 ] . dc , 'eu' ) ;
1400
-
1401
- const Product = db . model ( 'Product' , productSchema ) ;
1402
- const [ , doc2 ] = await Product . create ( [
1403
- { numbers : [ 3 , 4 , 5 ] } ,
1404
- { strings : 'hi there' . split ( ' ' ) , w : 'majority' }
1405
- ] ) ;
1406
-
1407
- const docs = await Product . find ( ) . setOptions ( { limit : 1 , sort : { _id : - 1 } , read : 'n' } ) ;
1408
- assert . equal ( docs . length , 1 ) ;
1409
- assert . equal ( docs [ 0 ] . id , doc2 . id ) ;
1410
1400
} ) ;
1411
1401
1412
1402
it ( 'populate as array in options (gh-4446)' , function ( ) {
0 commit comments