Commit 15fa221
authored
fix(sdk): match invalid checkpoint token casing (#723)
* fix: match invalid checkpoint token casing
Service emits "Invalid checkpoint token" (lowercase). The SDK
compared with a Title Case prefix, so stale tokens were treated
as non-retryable execution failures.
Compare case-insensitively and cover both casings in unit tests.
Fixes #721
* fix: use exact Invalid checkpoint token match
Match the backend error prefix case-sensitively and restore the
single-unit test description preferred in review.1 parent 5a09149 commit 15fa221
2 files changed
Lines changed: 4 additions & 4 deletions
File tree
- packages/aws-durable-execution-sdk-python
- src/aws_durable_execution_sdk_python
- tests
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
| 165 | + | |
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
0 commit comments