We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a58ce34 commit 7b4a1fbCopy full SHA for 7b4a1fb
test/tools/unified-spec-runner/match.ts
@@ -773,6 +773,12 @@ export function expectErrorCheck(
773
expect(error).to.be.instanceof(MongoOperationTimeoutError);
774
}
775
776
+ if (expected.isTimeoutError === false) {
777
+ expect(error).to.not.be.instanceof(MongoOperationTimeoutError);
778
+ } else if (expected.isTimeoutError === true) {
779
+ expect(error).to.be.instanceof(MongoOperationTimeoutError);
780
+ }
781
+
782
if (expected.errorContains != null) {
783
expect(error.message.toLowerCase(), expectMessage.toLowerCase()).to.include(
784
expected.errorContains.toLowerCase()
0 commit comments