File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { expect } from 'chai' ;
2
2
3
- import { MongoInvalidArgumentError } from '../../../src/error' ;
3
+ import { MongoInvalidArgumentError , MongoServerError } from '../../../src/error' ;
4
4
import { type MongoClient } from '../../../src/mongo_client' ;
5
5
import { filterForCommands } from '../shared' ;
6
6
@@ -601,7 +601,7 @@ describe('Aggregation', function () {
601
601
. toArray ( )
602
602
. catch ( error => error ) ;
603
603
604
- expect ( error ) . to . be . instanceOf ( MongoInvalidArgumentError ) ;
604
+ expect ( error ) . to . be . instanceOf ( MongoServerError ) ;
605
605
} ) ;
606
606
607
607
it ( 'should fail if you try to use explain flag with { writeConcern: { j: true } }' , async function ( ) {
@@ -615,7 +615,7 @@ describe('Aggregation', function () {
615
615
. toArray ( )
616
616
. catch ( error => error ) ;
617
617
618
- expect ( error ) . to . be . instanceOf ( MongoInvalidArgumentError ) ;
618
+ expect ( error ) . to . be . instanceOf ( MongoServerError ) ;
619
619
} ) ;
620
620
621
621
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