Skip to content

Commit ab100fc

Browse files
committed
add assertion to both errors
1 parent 3774e99 commit ab100fc

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
@@ -972,6 +972,7 @@ describe('CSOT driver tests', metadata, () => {
972972

973973
it('emits an error event', async function () {
974974
let [err] = await once(cs, 'error'); // getMore failure
975+
expect(err).to.be.instanceof(MongoOperationTimeoutError);
975976
[err] = await once(cs, 'error'); // aggregate failure
976977
expect(err).to.be.instanceof(MongoOperationTimeoutError);
977978
});

0 commit comments

Comments
 (0)