itest: assert no failed updates in test

So that this fails earlier on if the actual call to UpdateChannelPolicy
fails.
This commit is contained in:
Elle Mouton committed 2024-11-28 13:51:14 +02:00
1 parent adcaa8802f
commit fd2ea411be
1 file changed
+2 -1
+2 -1
View File
@@ -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)