Skip to content

Commit 9895776

Browse files
committed
remove blocking, make failpoint returns instantly
1 parent c68eaab commit 9895776

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

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

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -172,14 +172,12 @@ describe('Retry Timeout is Enforced', function () {
172172
},
173173
async function () {
174174
// 1. Configure a failpoint that always fails commitTransaction with
175-
// UnknownTransactionCommitResult and blocks for 25ms to consume timeout budget.
175+
// UnknownTransactionCommitResult.
176176
await configureFailPoint(this.configuration, {
177177
configureFailPoint: 'failCommand',
178178
mode: 'alwaysOn',
179179
data: {
180180
failCommands: ['commitTransaction'],
181-
blockConnection: true,
182-
blockTimeMS: 25,
183181
errorCode: 64,
184182
errorLabels: ['UnknownTransactionCommitResult']
185183
}
@@ -215,15 +213,12 @@ describe('Retry Timeout is Enforced', function () {
215213
},
216214
async function () {
217215
// 1. Configure a failpoint that always fails commitTransaction with
218-
// TransientTransactionError (errorCode 251 = NoSuchTransaction) and blocks for 25ms
219-
// to consume timeout budget.
216+
// TransientTransactionError (errorCode 251 = NoSuchTransaction).
220217
await configureFailPoint(this.configuration, {
221218
configureFailPoint: 'failCommand',
222219
mode: 'alwaysOn',
223220
data: {
224221
failCommands: ['commitTransaction'],
225-
blockConnection: true,
226-
blockTimeMS: 25,
227222
errorCode: 251,
228223
errorLabels: ['TransientTransactionError']
229224
}

0 commit comments

Comments
 (0)