Skip to content

Commit 5c2fd19

Browse files
committed
fix: skipping
1 parent 9119c69 commit 5c2fd19

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/integration/crud/crud_api.test.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ describe('CRUD API', function () {
117117
if (this.currentTest) {
118118
this.currentTest.skipReason = `Cannot run fail points on server version: ${this.configuration.version}`;
119119
}
120-
return this.currentTest?.skip();
120+
return this.skip();
121121
}
122122

123123
const failPoint: FailPoint = {
@@ -132,7 +132,11 @@ describe('CRUD API', function () {
132132
await client.db().admin().command(failPoint);
133133
});
134134

135-
afterEach(async () => {
135+
afterEach(async function () {
136+
if (semver.lt(this.configuration.version, '4.2.0')) {
137+
return;
138+
}
139+
136140
const failPoint: FailPoint = {
137141
configureFailPoint: 'failCommand',
138142
mode: 'off',

0 commit comments

Comments
 (0)