1 parent 9667c31 commit 48335f6Copy full SHA for 48335f6
1 file changed
src/core/run.test.ts
@@ -2106,6 +2106,10 @@ test("a task that catches a failed relaunch is re-entered rather than left waiti
2106
expect(caught).toContain("503 from the gateway")
2107
expect(result.outcome).toBe("completed")
2108
expect(entries).toEqual([1, 2])
2109
+ // One unit per launch attempt, stated once and applied everywhere: the
2110
+ // relaunch's attempt that failed, and the loop's that worked. 0.2.0 charged
2111
+ // the failed one twice — once for the relaunch, once for the death it caused.
2112
+ expect(events[0]?.relaunches).toBe(2)
2113
expect(events[0]?.manualRelaunches).toBe(0)
2114
})
2115
0 commit comments