(t *testing.T)
| 32 | } |
| 33 | |
| 34 | func TestCalculateBlocksDiff_ZeroBackoff(t *testing.T) { |
| 35 | params := defaultTestParams() |
| 36 | params.EpochBlocksBackoffPercent = 0 |
| 37 | |
| 38 | // Even with CR well below warn threshold, should return MinEpochBlocks |
| 39 | require.Equal(t, params.MinEpochBlocks, calculateBlocksDiff(params, 9200)) |
| 40 | require.Equal(t, params.MinEpochBlocks, calculateBlocksDiff(params, 9000)) |
| 41 | } |
| 42 | |
| 43 | func TestCalculateBlocksDiff_StepsTooSmall(t *testing.T) { |
| 44 | params := defaultTestParams() |
nothing calls this directly
no test coverage detected