-
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.
skip clientBulkWrite tests and remove duplicate folder
- Loading branch information
1 parent
c207ce1
commit 25a4196
Showing
67 changed files
with
19 additions
and
18,087 deletions.
There are no files selected for viewing
20 changes: 19 additions & 1 deletion
20
test/integration/retryable-writes/retryable_writes.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 |
---|---|---|
@@ -1,6 +1,24 @@ | ||
import { loadSpecTests } from '../../spec'; | ||
import { runUnifiedSuite } from '../../tools/unified-spec-runner/runner'; | ||
|
||
const CLIENT_BULK_WRITE_TESTS = [ | ||
'client bulkWrite with one network error succeeds after retry', | ||
'client bulkWrite with two network errors fails after retry', | ||
'client bulkWrite with no multi: true operations succeeds after retryable top-level error', | ||
'client bulkWrite with multi: true operations fails after retryable top-level error', | ||
'client bulkWrite with no multi: true operations succeeds after retryable writeConcernError', | ||
'client bulkWrite with multi: true operations fails after retryable writeConcernError', | ||
'client bulkWrite with retryWrites: false does not retry', | ||
'client.clientBulkWrite succeeds after retryable handshake network error', | ||
'client.clientBulkWrite succeeds after retryable handshake server error (ShutdownInProgress)' | ||
]; | ||
|
||
describe('Retryable Writes', function () { | ||
runUnifiedSuite(loadSpecTests('retryable-writes')); | ||
const tests = loadSpecTests('retryable-writes'); | ||
runUnifiedSuite(tests, test => { | ||
if (CLIENT_BULK_WRITE_TESTS.includes(test.description)) { | ||
return 'TODO(NODE-6257): unskip this once clientBulkWrite UTR entity is supported'; | ||
} | ||
return false; | ||
}); | ||
}); |
Oops, something went wrong.