()
| 13 | ) |
| 14 | |
| 15 | func defaultTestParams() types.Params { |
| 16 | return types.Params{ |
| 17 | CircuitBreakerWarnThreshold: 9500, // 0.95 |
| 18 | CircuitBreakerHaltThreshold: 9000, // 0.90 |
| 19 | MinEpochBlocks: 10, |
| 20 | EpochBlocksBackoffPercent: 10, // 10% |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | func TestCalculateBlocksDiff_AtOrAboveWarnThreshold(t *testing.T) { |
| 25 | params := defaultTestParams() |
no outgoing calls
no test coverage detected