Skip to content

Commit

Permalink
skip clientBulkWrite tests and remove duplicate folder
Browse files Browse the repository at this point in the history
  • Loading branch information
aditi-khare-mongoDB committed Jul 9, 2024
1 parent c207ce1 commit 25a4196
Show file tree
Hide file tree
Showing 67 changed files with 19 additions and 18,087 deletions.
20 changes: 19 additions & 1 deletion test/integration/retryable-writes/retryable_writes.spec.test.ts
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;
});
});
Loading

0 comments on commit 25a4196

Please sign in to comment.