-
Notifications
You must be signed in to change notification settings - Fork 1.8k
test(NODE-5852): Skip transaction unpin spec tests #3980
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
36744f9
b04f402
23f1107
7185bfc
7ff5aab
08c990d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,7 @@ | ||
| 'use strict'; | ||
|
|
||
| import { gte } from 'semver'; | ||
|
|
||
| const path = require('path'); | ||
| const { expect } = require('chai'); | ||
| const { TestRunnerContext, generateTopologyTests } = require('../../tools/spec-runner'); | ||
|
|
@@ -93,6 +95,14 @@ const SKIP_TESTS = [ | |
| 'Client side error when transaction is in progress' | ||
| ]; | ||
|
|
||
| const LATEST_SKIP_TESTS = [ | ||
| // TODO(NODE-5855): Unskip Transactions Spec Unified Tests mongos-unpin.unpin | ||
| 'unpin after TransientTransactionError error on commit', | ||
|
||
| 'unpin on successful abort', | ||
| 'unpin after non-transient error on abort', | ||
| 'unpin after TransientTransactionError error on abort' | ||
| ]; | ||
|
|
||
| describe('Transactions Spec Legacy Tests', function () { | ||
| const testContext = new TransactionsRunnerContext(); | ||
| if (process.env.SERVERLESS) { | ||
|
|
@@ -113,8 +123,11 @@ describe('Transactions Spec Legacy Tests', function () { | |
| return testContext.setup(this.configuration); | ||
| }); | ||
|
|
||
| function testFilter(spec) { | ||
| return SKIP_TESTS.indexOf(spec.description) === -1; | ||
| function testFilter(spec, configuration) { | ||
| return ( | ||
| SKIP_TESTS.indexOf(spec.description) === -1 && | ||
| (!gte(configuration.version, '7.1.0') || LATEST_SKIP_TESTS.indexOf(spec.description) === -1) | ||
| ); | ||
| } | ||
|
|
||
| generateTopologyTests(testSuites, testContext, testFilter); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.