From 9f67bfa30dc0bab1e63a30c038cde3d438e7f8ed Mon Sep 17 00:00:00 2001 From: Lukasz Zimnoch Date: Mon, 9 Nov 2020 14:03:45 +0100 Subject: [PATCH] Add comment about `IncreaseRedemptionFee` call --- pkg/extensions/tbtc/tbtc_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/extensions/tbtc/tbtc_test.go b/pkg/extensions/tbtc/tbtc_test.go index d168aa2d3..ec041665b 100644 --- a/pkg/extensions/tbtc/tbtc_test.go +++ b/pkg/extensions/tbtc/tbtc_test.go @@ -1126,6 +1126,9 @@ func TestProvideRedemptionProof_StopEventOccurred_DepositRedemptionRequested( // to make sure the potential transaction completes time.Sleep(2 * timeout) + // Expect exactly one call of `IncreaseRedemptionFee` coming from the + // explicit invocation placed above. The monitoring routine is not expected + // to do any calls. expectedIncreaseRedemptionFeeCalls := 1 actualIncreaseRedemptionFeeCalls := tbtcChain.Logger(). IncreaseRedemptionFeeCalls()