mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-26 01:33:02 +01:00
lntest: fix error message in WaitForChannelCloseEvent
Resp is always nil, so we actually need to log event.Update here.
This commit is contained in:
parent
81d34c4ac2
commit
2899a757c4
@ -534,8 +534,8 @@ func (h HarnessTest) WaitForChannelCloseEvent(
|
||||
require.NoError(h, err)
|
||||
|
||||
resp, ok := event.Update.(*lnrpc.CloseStatusUpdate_ChanClose)
|
||||
require.Truef(h, ok, "expected channel open update, instead got %v",
|
||||
resp)
|
||||
require.Truef(h, ok, "expected channel close update, instead got %v",
|
||||
event.Update)
|
||||
|
||||
txid, err := chainhash.NewHash(resp.ChanClose.ClosingTxid)
|
||||
require.NoErrorf(h, err, "wrong format found in closing txid: %v",
|
||||
|
Loading…
x
Reference in New Issue
Block a user