File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { expect } from 'chai' ;
22
3- import { MongoInvalidArgumentError } from '../../../src/error' ;
3+ import { MongoInvalidArgumentError , MongoServerError } from '../../../src/error' ;
44import { type MongoClient } from '../../../src/mongo_client' ;
55import { filterForCommands } from '../shared' ;
66
@@ -601,7 +601,7 @@ describe('Aggregation', function () {
601601 . toArray ( )
602602 . catch ( error => error ) ;
603603
604- expect ( error ) . to . be . instanceOf ( MongoInvalidArgumentError ) ;
604+ expect ( error ) . to . be . instanceOf ( MongoServerError ) ;
605605 } ) ;
606606
607607 it ( 'should fail if you try to use explain flag with { writeConcern: { j: true } }' , async function ( ) {
@@ -615,7 +615,7 @@ describe('Aggregation', function () {
615615 . toArray ( )
616616 . catch ( error => error ) ;
617617
618- expect ( error ) . to . be . instanceOf ( MongoInvalidArgumentError ) ;
618+ expect ( error ) . to . be . instanceOf ( MongoServerError ) ;
619619 } ) ;
620620
621621 it ( 'should ensure MaxTimeMS is correctly passed down into command execution when using a cursor' , async function ( ) {
You can’t perform that action at this time.
0 commit comments