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 2024-10-29 18:50:01 +02:00
parent adcaa8802f
commit fd2ea411be
No known key found for this signature in database
GPG Key ID: D7D916376026F177

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)