Commit 8a32d3f
authored
test(sessions): pin exactly one error session is stored
Round-2 review note: assertRunConfigPersisted read setSession.mock.calls.at(-1), which tolerates extra setSession calls. Assert the call count is exactly 1 so a future setup change that lets the auto-retry loop run can't slip an intermediate session past the last-call assertions.
Generated-By: PostHog Code
Task-Id: 88d22f31-54f1-4121-bd68-40c5958bb2cd1 parent bfd25bb commit 8a32d3f
1 file changed
Lines changed: 4 additions & 0 deletions
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
111 | 115 | | |
112 | 116 | | |
113 | 117 | | |
| |||
0 commit comments