MCPcopy Create free account
hub / github.com/akash-network/node / TestCalculateBlocksDiff_ZeroBackoff

Function TestCalculateBlocksDiff_ZeroBackoff

x/bme/keeper/keeper_test.go:34–41  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

32}
33
34func 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
43func TestCalculateBlocksDiff_StepsTooSmall(t *testing.T) {
44 params := defaultTestParams()

Callers

nothing calls this directly

Calls 2

defaultTestParamsFunction · 0.85
calculateBlocksDiffFunction · 0.85

Tested by

no test coverage detected