← Back to Explore

retry-counter-reset

GOTO resets retry counter to zero

retries

Rundown


# Retry Counter Reset on GOTO

Tests spec rule: "GOTO resets the retry counter to 0 for the target location"

## 1. First attempt

- PASS: CONTINUE
- FAIL: RETRY 1 GOTO 2

```bash
rd echo --result fail --result fail
```

## 2. Second attempt (counter should be 0 again)

- PASS: COMPLETE
- FAIL: RETRY 1 STOP

```bash
rd echo --result fail --result pass
```

Run

Step 1 exhausts retry, GOTOs step 2 which succeeds

Initializing...

Initializing...

Step/