Skip to content

Commit bf0937f

Browse files
Skipped all versions instead of just latest
lint fix
1 parent 3a29e0b commit bf0937f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Diff for: test/integration/transactions/transactions.spec.test.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
'use strict';
22

3-
const { gte } = require('semver');
4-
53
const path = require('path');
64
const { expect } = require('chai');
75
const { TestRunnerContext, generateTopologyTests } = require('../../tools/spec-runner');
@@ -80,7 +78,7 @@ class TransactionsRunnerContext extends TestRunnerContext {
8078
}
8179
}
8280

83-
const LATEST_UNIFIED_SKIP_TESTS = [
81+
const UNIFIED_SKIP_TESTS = [
8482
'unpin after TransientTransactionError error on commit',
8583
'unpin on successful abort',
8684
'unpin after non-transient error on abort',
@@ -91,8 +89,8 @@ const LATEST_UNIFIED_SKIP_TESTS = [
9189
];
9290

9391
describe('Transactions Spec Unified Tests', function () {
94-
runUnifiedSuite(loadSpecTests(path.join('transactions', 'unified')), (test, ctx) =>
95-
gte(ctx.version, '8.0.0') && LATEST_UNIFIED_SKIP_TESTS.includes(test.description)
92+
runUnifiedSuite(loadSpecTests(path.join('transactions', 'unified')), test =>
93+
UNIFIED_SKIP_TESTS.includes(test.description)
9694
? 'TODO(NODE-5855): Unskip Transactions Spec Unified Tests mongos-unpin.unpin'
9795
: false
9896
);

0 commit comments

Comments
 (0)