Skip to content

Commit 50d5c2c

Browse files
committed
run all tests
1 parent 89eafde commit 50d5c2c

4 files changed

Lines changed: 3 additions & 10 deletions

File tree

src/operations/execute_operation.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -262,10 +262,8 @@ async function executeOperationWithRetries<
262262
const result = await server.command(operation, timeoutContext);
263263
topology.tokenBucket.deposit(
264264
attempt > 0
265-
? // on successful retry, deposit the retry cost + the refresh rate.
266-
RETRY_TOKEN_RETURN_RATE + RETRY_COST
267-
: // otherwise, just deposit the refresh rate.
268-
RETRY_TOKEN_RETURN_RATE
265+
? RETRY_TOKEN_RETURN_RATE + RETRY_COST // on successful retry
266+
: RETRY_TOKEN_RETURN_RATE // otherwise
269267
);
270268
return operation.handleOk(result);
271269
} catch (error) {

sync.sh

Lines changed: 0 additions & 4 deletions
This file was deleted.

test/integration/transactions/transactions.spec.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const SKIPPED_TESTS = [
1313
'client bulkWrite with writeConcern in a transaction causes a transaction error'
1414
];
1515

16-
describe.only('Transactions Spec Unified Tests', function () {
16+
describe('Transactions Spec Unified Tests', function () {
1717
runUnifiedSuite(loadSpecTests(path.join('transactions', 'unified')), test => {
1818
return SKIPPED_TESTS.includes(test.description)
1919
? 'TODO(NODE-5924): Skipping failing transaction tests'

test/unit/index.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ const EXPECTED_EXPORTS = [
132132
'SeverityLevel',
133133
'SrvPollingEvent',
134134
'Timestamp',
135-
'TokenBucket',
136135
'TopologyClosedEvent',
137136
'TopologyDescriptionChangedEvent',
138137
'TopologyOpeningEvent',

0 commit comments

Comments
 (0)