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 c091e14 commit 9119c69Copy full SHA for 9119c69
test/integration/crud/crud_api.test.ts
@@ -1,5 +1,6 @@
1
import { expect } from 'chai';
2
import { on } from 'events';
3
+import * as semver from 'semver';
4
import * as sinon from 'sinon';
5
6
import {
@@ -111,7 +112,14 @@ describe('CRUD API', function () {
111
112
});
113
114
describe('when the find operation fails', () => {
- beforeEach(async () => {
115
+ beforeEach(async function () {
116
+ if (semver.lt(this.configuration.version, '4.2.0')) {
117
+ if (this.currentTest) {
118
+ this.currentTest.skipReason = `Cannot run fail points on server version: ${this.configuration.version}`;
119
+ }
120
+ return this.currentTest?.skip();
121
122
+
123
const failPoint: FailPoint = {
124
configureFailPoint: 'failCommand',
125
mode: 'alwaysOn',
0 commit comments