Skip to content

Commit 938af9b

Browse files
MoLowaduh95
authored andcommitted
doc: mention test runner retry attemp is zero based
PR-URL: #62504 Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Pietro Marchini <pietro.marchini94@gmail.com>
1 parent dd43eff commit 938af9b

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

doc/api/test.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3867,7 +3867,9 @@ added: v25.0.0
38673867

38683868
* Type: {number}
38693869

3870-
Number of times the test has been attempted.
3870+
The attempt number of the test. This value is zero-based, so the first attempt is `0`,
3871+
the second attempt is `1`, and so on. This property is useful in conjunction with the
3872+
`--test-rerun-failures` option to determine which attempt the test is currently running.
38713873

38723874
### `context.workerId`
38733875

@@ -4240,9 +4242,9 @@ added: REPLACEME
42404242

42414243
* Type: {number}
42424244

4243-
The current attempt number of the suite. Used in conjunction with the
4244-
`--test-rerun-failures` option to determine the attempt number of the current
4245-
run.
4245+
The attempt number of the suite. This value is zero-based, so the first attempt is `0`,
4246+
the second attempt is `1`, and so on. This property is useful in conjunction with the
4247+
`--test-rerun-failures` option to determine the attempt number of the current run.
42464248

42474249
### `context.diagnostic(message)`
42484250

0 commit comments

Comments
 (0)