Skip to content

Commit feda772

Browse files
committed
test: fix integration tests
1 parent a887760 commit feda772

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/integration/crud/aggregation.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { expect } from 'chai';
22

3-
import { MongoInvalidArgumentError } from '../../../src/error';
3+
import { MongoInvalidArgumentError, MongoServerError } from '../../../src/error';
44
import { type MongoClient } from '../../../src/mongo_client';
55
import { 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 () {

0 commit comments

Comments
 (0)