diff --git a/core/utils/eth_client_utils_test.go b/core/utils/eth_client_utils_test.go index 739354b57e..f1fc3922a4 100644 --- a/core/utils/eth_client_utils_test.go +++ b/core/utils/eth_client_utils_test.go @@ -25,7 +25,7 @@ func TestCalculateGasPriceBumpBasedOnRetry(t *testing.T) { big.NewInt(5400000000), big.NewInt(7000000000)} - for i := range n { + for i := 0; i < n; i++ { currentGasPrice := gasPrices[i] bumpedGasPrice := utils.CalculateGasPriceBumpBasedOnRetry(currentGasPrice, baseBumpPercentage, incrementalRetryPercentage, i) expectedGasPrice := expectedBumpedGasPrices[i] @@ -34,5 +34,4 @@ func TestCalculateGasPriceBumpBasedOnRetry(t *testing.T) { t.Errorf("Bumped gas price does not match expected gas price, expected value %v, got: %v", expectedGasPrice, bumpedGasPrice) } } - }