lntest: fix error message in WaitForChannelCloseEvent
Resp is always nil, so we actually need to log event.Update here.
This commit is contained in:
1 parent
81d34c4ac2
commit
2899a757c4
1 file changed
+2
-2
@@ -534,8 +534,8 @@ func (h HarnessTest) WaitForChannelCloseEvent(
|
|||||||
require.NoError(h, err)
|
require.NoError(h, err)
|
||||||
|
|
||||||
resp, ok := event.Update.(*lnrpc.CloseStatusUpdate_ChanClose)
|
resp, ok := event.Update.(*lnrpc.CloseStatusUpdate_ChanClose)
|
||||||
require.Truef(h, ok, "expected channel open update, instead got %v",
|
require.Truef(h, ok, "expected channel close update, instead got %v",
|
||||||
resp)
|
event.Update)
|
||||||
|
|
||||||
txid, err := chainhash.NewHash(resp.ChanClose.ClosingTxid)
|
txid, err := chainhash.NewHash(resp.ChanClose.ClosingTxid)
|
||||||
require.NoErrorf(h, err, "wrong format found in closing txid: %v",
|
require.NoErrorf(h, err, "wrong format found in closing txid: %v",
|
||||||
|
|||||||
Reference in new issue
Block a user