From fd2ea411be07211b80f53bcdbce939bddf423cd9 Mon Sep 17 00:00:00 2001 From: Elle Mouton Date: Tue, 29 Oct 2024 18:50:01 +0200 Subject: [PATCH] itest: assert no failed updates in test So that this fails earlier on if the actual call to UpdateChannelPolicy fails. --- itest/lnd_channel_policy_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/itest/lnd_channel_policy_test.go b/itest/lnd_channel_policy_test.go index bb0520975..9aa0f09b8 100644 --- a/itest/lnd_channel_policy_test.go +++ b/itest/lnd_channel_policy_test.go @@ -254,7 +254,8 @@ func testUpdateChannelPolicy(ht *lntest.HarnessTest) { ChanPoint: chanPoint, }, } - bob.RPC.UpdateChannelPolicy(req) + updateResp := bob.RPC.UpdateChannelPolicy(req) + require.Empty(ht, updateResp.FailedUpdates, 0) // Wait for all nodes to have seen the policy update done by Bob. assertNodesPolicyUpdate(ht, nodes, bob, expectedPolicy, chanPoint)