From 8c11ca97e1f6f135fdcbdc16ec90d2efd3f824ee Mon Sep 17 00:00:00 2001 From: Elle Mouton Date: Mon, 3 Mar 2025 08:46:34 +0200 Subject: [PATCH] itest: rename closure for clarity --- itest/lnd_channel_policy_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/itest/lnd_channel_policy_test.go b/itest/lnd_channel_policy_test.go index 18c2328e9..7a333f073 100644 --- a/itest/lnd_channel_policy_test.go +++ b/itest/lnd_channel_policy_test.go @@ -341,10 +341,10 @@ func testUpdateChannelPolicy(ht *lntest.HarnessTest) { // but not the second, as she only allows two updates per day and a day // has yet to elapse from the previous update. - // assertAliceAndBob is a helper closure which updates Alice's policy - // and asserts that both Alice and Bob have heard and updated the + // updateAndAssertAliceAndBob is a helper closure which updates Alice's + // policy and asserts that both Alice and Bob have heard and updated the // policy in their graph. - assertAliceAndBob := func(req *lnrpc.PolicyUpdateRequest, + updateAndAssertAliceAndBob := func(req *lnrpc.PolicyUpdateRequest, expectedPolicy *lnrpc.RoutingPolicy) { alice.RPC.UpdateChannelPolicy(req) @@ -384,7 +384,7 @@ func testUpdateChannelPolicy(ht *lntest.HarnessTest) { expectedPolicy.FeeBaseMsat = baseFee1 req.BaseFeeMsat = baseFee1 req.InboundFee = nil - assertAliceAndBob(req, expectedPolicy) + updateAndAssertAliceAndBob(req, expectedPolicy) // Check that Carol has both heard the policy and updated it in her // graph. @@ -407,7 +407,7 @@ func testUpdateChannelPolicy(ht *lntest.HarnessTest) { baseFee2 := baseFee1 * 2 expectedPolicy.FeeBaseMsat = baseFee2 req.BaseFeeMsat = baseFee2 - assertAliceAndBob(req, expectedPolicy) + updateAndAssertAliceAndBob(req, expectedPolicy) // Since Carol didn't receive the last update, she still has Alice's // old policy. We validate this by checking the base fee is the older