From 2899a757c49e97225ef631a60a1a7113109674e9 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Thu, 7 Mar 2024 20:15:29 -0800 Subject: [PATCH] lntest: fix error message in WaitForChannelCloseEvent Resp is always nil, so we actually need to log event.Update here. --- lntest/harness_assertion.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lntest/harness_assertion.go b/lntest/harness_assertion.go index fb5b03990..326afe8b7 100644 --- a/lntest/harness_assertion.go +++ b/lntest/harness_assertion.go @@ -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",