Skip to content

Commit b680d24

Browse files
committed
update error predicate
1 parent af853f0 commit b680d24

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/integration/auth/mongodb_aws.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ describe('MONGODB-AWS', function () {
127127
.catch(e => e);
128128

129129
// Expecting the saslContinue to fail since we changed the conversationId
130-
expect(err).to.be.instanceof(MongoError);
130+
expect(err).to.be.instanceof(MongoServerError);
131+
expect(err.messsage).to.match(/Mismatched conversation id/);
131132

132133
expect(saslStartResult).to.not.be.undefined;
133134
expect(saslContinue).to.not.be.undefined;

0 commit comments

Comments
 (0)