Skip to content

Commit 615ba2a

Browse files
committed
add err check to test
1 parent bcec4a4 commit 615ba2a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

consensus/dummy/dynamic_fees_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ func testDynamicFeesStaysWithinRange(t *testing.T, test test) {
154154
t.Fatalf("Failed to calculate extra prefix at index %d: %s", index, err)
155155
}
156156
nextBaseFee, err := CalcBaseFee(params.TestChainConfig, testFeeConfig, header, block.timestamp)
157+
if err != nil {
158+
t.Fatalf("Failed to calculate base fee at index %d: %s", index, err)
159+
}
157160
if nextBaseFee.Cmp(test.minFee) < 0 {
158161
t.Fatalf("Expected fee to stay greater than %d, but found %d", test.minFee, nextBaseFee)
159162
}

0 commit comments

Comments
 (0)