Skip to content

Commit 0a503f1

Browse files
committed
add assertion to both errors
1 parent f0ab110 commit 0a503f1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/integration/client-side-operations-timeout/node_csot.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -968,6 +968,7 @@ describe('CSOT driver tests', metadata, () => {
968968

969969
it('emits an error event', async function () {
970970
let [err] = await once(cs, 'error'); // getMore failure
971+
expect(err).to.be.instanceof(MongoOperationTimeoutError);
971972
[err] = await once(cs, 'error'); // aggregate failure
972973
expect(err).to.be.instanceof(MongoOperationTimeoutError);
973974
});

0 commit comments

Comments
 (0)