Skip to content

Commit f8d463a

Browse files
committed
test(NODE-5930): convert convenient api to unified format
1 parent 0bf221f commit f8d463a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+7603
-6000
lines changed

test/integration/transactions-convenient-api/transactions-convenient-api.spec.test.js

Lines changed: 0 additions & 89 deletions
This file was deleted.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import * as path from 'path';
2+
3+
import { loadSpecTests } from '../../spec';
4+
import { runUnifiedSuite } from '../../tools/unified-spec-runner/runner';
5+
6+
const SKIPPED_TESTS = [
7+
'callback succeeds after multiple connection errors',
8+
'callback is not retried after non-transient error',
9+
'callback is not retried after non-transient error (DuplicateKeyError)'
10+
];
11+
12+
describe('Transactions Convenient API Spec Unified Tests', function () {
13+
this.beforeEach(function () {
14+
if (this.configuration.topologyType === 'LoadBalanced') {
15+
if (this.currentTest) {
16+
this.currentTest.skipReason =
17+
'TODO(NODE-5931) - Fix socket leaks in load balancer transaction tests.';
18+
}
19+
}
20+
this.skip();
21+
});
22+
23+
runUnifiedSuite(loadSpecTests(path.join('transactions-convenient-api', 'unified')), test => {
24+
return SKIPPED_TESTS.includes(test.description)
25+
? 'TODO(NODE-): Skipping failing transaction tests'
26+
: false;
27+
});
28+
});

test/spec/transactions-convenient-api/README.rst

Lines changed: 0 additions & 220 deletions
This file was deleted.

0 commit comments

Comments
 (0)