multi: Add itest for a failed funding flow.

This adds an itest for a failed funding flow by our peer.
This commit is contained in:
ziggie committed 2024-01-22 16:45:38 +00:00
1 parent 3530254ff4
commit ccac5c349c
7 files changed
+122 -4

No files matched your search

+10
View File
@@ -289,6 +289,16 @@ func (h *HarnessTest) ReceiveOpenChannelUpdate(
return update
}
// ReceiveOpenChannelError waits for the expected error during the open channel
// flow from the peer or times out.
func (h *HarnessTest) ReceiveOpenChannelError(
stream rpc.OpenChanClient, expectedErr error) {
_, err := h.receiveOpenChannelUpdate(stream)
require.Contains(h, err.Error(), expectedErr.Error(),
"error not matched")
}
// receiveOpenChannelUpdate waits until a message or an error is received on
// the stream or the timeout is reached.
//