Skip to content

Commit c6fd568

Browse files
committed
refactor: put recovery tokens behind a feature flag for now
1 parent 2a6c530 commit c6fd568

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/operations/mongo_client_ops.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ const validOptionNames = [
111111
'retryWrites',
112112
'useNewUrlParser',
113113
'useUnifiedTopology',
114-
'serverSelectionTimeoutMS'
114+
'serverSelectionTimeoutMS',
115+
'useRecoveryToken'
115116
];
116117

117118
function addListeners(mongoClient, topology) {

test/functional/transactions_tests.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ function runTestSuiteTest(configuration, spec, context) {
324324
// test-specific client optionss
325325
clientOptions.autoReconnect = false;
326326
clientOptions.haInterval = 100;
327+
clientOptions.useRecoveryToken = true;
327328

328329
const url = resolveConnectionString(configuration, spec);
329330
const client = configuration.newClient(url, clientOptions);

0 commit comments

Comments
 (0)