Skip to content

Commit

Permalink
improve retry timeouts reliability
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael-theriault-swi committed Sep 9, 2024
1 parent 1b1b7ce commit 74e6924
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/test/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,9 @@ export const otel = Object.freeze({
beforeEach(async function () {
const CURRENT_RETRY = "currentRetry"
const currentRetry = this.currentTest?.[CURRENT_RETRY]()

if (currentRetry) {
this.timeout(1000 + this.timeout())
await setTimeout(currentRetry * 1000)
}
})

0 comments on commit 74e6924

Please sign in to comment.