Skip to content

Commit

Permalink
test(NODE-4790): retryable handshake errors spec sync (#3472)
Browse files Browse the repository at this point in the history
  • Loading branch information
dariakp committed Nov 18, 2022
1 parent 8254575 commit fda7d25
Show file tree
Hide file tree
Showing 5 changed files with 4,482 additions and 124 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 13 additions & 1 deletion test/integration/retryable-reads/retryable_reads.spec.test.js
Expand Up @@ -29,6 +29,18 @@ describe('Retryable Reads (legacy)', function () {
});
});

const UNIMPLEMENTED_APIS = [
'collection.listIndexNames',
'database.listCollectionNames',
'client.listDatabaseNames'
];

describe('Retryable Reads (unified)', function () {
runUnifiedSuite(loadSpecTests(path.join('retryable-reads', 'unified')));
runUnifiedSuite(loadSpecTests(path.join('retryable-reads', 'unified')), ({ description }) => {
for (const apiName of UNIMPLEMENTED_APIS) {
if (description.startsWith(apiName)) {
return `The Node.js Driver does not support ${apiName}`;
}
}
});
});

0 comments on commit fda7d25

Please sign in to comment.