()
| 2585 | |
| 2586 | # l2 can fail the trimmed HTLC upstream straight away, but not the live one. |
| 2587 | def part_status(): |
| 2588 | return {p['partid']: p['status'] for p in l1.rpc.listsendpays(payment_hash=rhash)['payments']} |
| 2589 | |
| 2590 | wait_for(lambda: 'failed' in part_status().values()) |
| 2591 | assert part_status() == {1: 'failed', 2: 'pending'} |
no test coverage detected