Skip to content

Commit bf75181

Browse files
test(NODE-7359): fix assertion window in convenient api backpressure prose test (#4841)
1 parent 92a0470 commit bf75181

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/integration/transactions-convenient-api/transactions-convenient-api.prose.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ describe('Retry Backoff is Enforced', function () {
7777
});
7878

7979
// 5. Compare the two time between the two runs.
80-
// The sum of 13 backoffs is roughly 2.2 seconds. There is a 1-second window to account for potential variance between the two runs.
80+
// The sum of 13 backoffs is roughly 1.8 seconds. There is a half-second window to account for potential variance between the two runs.
8181
expect(fullBackoffDuration).to.be.within(
82-
noBackoffTime + 2200 - 1000,
83-
noBackoffTime + 2200 + 1000
82+
noBackoffTime + 1800 - 500,
83+
noBackoffTime + 1800 + 500
8484
);
8585
}
8686
);

0 commit comments

Comments
 (0)