-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
180 changed files
with
50,370 additions
and
38,833 deletions.
There are no files selected for viewing
89 changes: 0 additions & 89 deletions
89
test/integration/transactions-convenient-api/transactions-convenient-api.spec.test.js
This file was deleted.
Oops, something went wrong.
39 changes: 39 additions & 0 deletions
39
test/integration/transactions-convenient-api/transactions-convenient-api.spec.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import * as path from 'path'; | ||
|
||
import { loadSpecTests } from '../../spec'; | ||
import { runUnifiedSuite } from '../../tools/unified-spec-runner/runner'; | ||
|
||
const SKIPPED_TESTS = [ | ||
'callback succeeds after multiple connection errors', | ||
'callback is not retried after non-transient error', | ||
'callback is not retried after non-transient error (DuplicateKeyError)', | ||
'withTransaction succeeds if callback aborts', | ||
'unpin after transient error within a transaction', | ||
'withTransaction succeeds if callback commits', | ||
'withTransaction still succeeds if callback aborts and runs extra op', | ||
'withTransaction still succeeds if callback commits and runs extra op', | ||
'withTransaction commits after callback returns (second transaction)', | ||
'withTransaction commits after callback returns', | ||
'withTransaction and no transaction options set', | ||
'withTransaction inherits transaction options from defaultTransactionOptions', | ||
'withTransaction explicit transaction options override defaultTransactionOptions', | ||
'withTransaction explicit transaction options' | ||
]; | ||
|
||
describe('Transactions Convenient API Spec Unified Tests', function () { | ||
beforeEach(function () { | ||
if (this.configuration.topologyType === 'LoadBalanced') { | ||
if (this.currentTest) { | ||
this.currentTest.skipReason = | ||
'TODO(NODE-5931) - Fix socket leaks in load balancer transaction tests.'; | ||
} | ||
this.skip(); | ||
} | ||
}); | ||
|
||
runUnifiedSuite(loadSpecTests(path.join('transactions-convenient-api', 'unified')), test => { | ||
return SKIPPED_TESTS.includes(test.description) | ||
? 'TODO(NODE-5855/DRIVERS-2816): Skipping failing transaction tests' | ||
: false; | ||
}); | ||
}); |
137 changes: 0 additions & 137 deletions
137
test/integration/transactions/transactions.spec.test.js
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import * as path from 'path'; | ||
|
||
import { loadSpecTests } from '../../spec'; | ||
import { runUnifiedSuite } from '../../tools/unified-spec-runner/runner'; | ||
|
||
const SKIPPED_TESTS = [ | ||
// TODO(NODE-5925) - secondary read preference not allowed in transactions. | ||
'readPreference inherited from defaultTransactionOptions', | ||
// TODO(NODE-5924) - Fix modification of readConcern object post message send. | ||
'readConcern local in defaultTransactionOptions', | ||
'defaultTransactionOptions override client options', | ||
'transaction options inherited from defaultTransactionOptions', | ||
'transaction options inherited from client', | ||
'causal consistency disabled' | ||
// TODO(NODE-5855) - Gone away after NODE-5929 | ||
]; | ||
|
||
describe('Transactions Spec Unified Tests', function () { | ||
this.beforeEach(function () { | ||
if (this.configuration.topologyType === 'LoadBalanced') { | ||
if (this.currentTest) { | ||
this.currentTest.skipReason = | ||
'TODO(NODE-5931) - Fix socket leaks in load balancer transaction tests.'; | ||
} | ||
} | ||
this.skip(); | ||
}); | ||
|
||
runUnifiedSuite(loadSpecTests(path.join('transactions', 'unified')), test => { | ||
return SKIPPED_TESTS.includes(test.description) | ||
? 'TODO(NODE-5924/NODE-5925): Skipping failing transaction tests' | ||
: false; | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.