cmd/testwrapper: fix off-by-one error in maxAttempts check

It was checking if `>= maxAttempts` which meant that the third
attempt would never run.

Updates #8493

Signed-off-by: Maisem Ali <maisem@tailscale.com>
This commit is contained in:
Maisem Ali 2023-08-24 16:48:22 -04:00 committed by Maisem Ali
parent a61a9ab087
commit ff7f4b4224
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ func main() {
var thisRun *nextRun
thisRun, toRun = toRun[0], toRun[1:]
if thisRun.attempt >= maxAttempts {
if thisRun.attempt > maxAttempts {
fmt.Println("max attempts reached")
os.Exit(1)
}