Commit 2f801bc
committed
test(sdk-coin-polyx): cover MPCv1 decrypt-failure error path
Add a test asserting the addRecoverySignature() MPCv1 branch
rethrows a descriptive 'Error decrypting user keychain' message
when bitgo.decrypt() rejects (e.g. wrong wallet passphrase).
The automated review dispatched after the prior test-coverage
commits flagged this catch/rethrow branch, moved out of recover()
and into addRecoverySignature() in the MPCv2 recovery commit, as
still unexercised by any test.
Ticket: WCI-1228
Session-Id: 3a00bebe-fe12-4aea-9f1a-5a2d0dd8e94b
Task-Id: dfadd58f-a04c-4dd9-819b-506439735cec1 parent 561b0e1 commit 2f801bc
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
275 | 285 | | |
276 | 286 | | |
277 | 287 | | |
| |||
0 commit comments