Commit 7bd8cda
Fix github-token-refresh test: remove illegal double snapshot call
The test was calling snapshot twice within a single task, which is
illegal (snapshot writes to a single IORef that can only hold one
value). Fixed by removing the second snapshot call and relying on
the automatic final status update when the task completes.
Test flow now:
1. snapshot posts "pending" status (creates and caches token)
2. Task sleeps 3 seconds (token expires after 2 seconds)
3. Task completes, final "success" status is posted automatically
(detects expired cached token and refreshes it)
This properly tests token refresh while following the one-snapshot-per-task rule.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent effcdcd commit 7bd8cda
File tree
2 files changed
+4
-9
lines changed- test/t/slow
2 files changed
+4
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | 6 | | |
10 | 7 | | |
11 | | - | |
12 | 8 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | | - | |
16 | | - | |
| 15 | + | |
17 | 16 | | |
0 commit comments