Skip to content

htlcswitch: wait for the tx_abort in TestLinkTxAbortKeepsReserves instead of sleeping - #12

Open
Kilombino wants to merge 1 commit into
paulscode:blake2bfrom
Kilombino:reserves-test-order
Open

Kilombino wants to merge 1 commit into
paulscode:blake2bfrom
Kilombino:reserves-test-order

Conversation

@Kilombino

Copy link
Copy Markdown

Follow-up to #10, from your review there.

The test slept 100 ms for the link to handle the tx_abort. The peer's messages are handled in order on the link's goroutine, so it now sends an stfu after the abort and waits for the reply: by then the abort has been handled.

Still fails with the old link code (checked by reverting #10's link changes), and passes 20 runs in a row with -tags dev.

…tead of sleeping

Follow-up to lightningnetwork#10. The test slept 100 ms for the link to handle the
tx_abort. The peer's messages are handled in order on the link's
goroutine, so it now sends an stfu after the abort and waits for the
answer: the abort has been handled by then. Still fails with the old
link code, 20 runs in a row pass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant