Skip to content

Commit

Permalink
add err check to test
Browse files Browse the repository at this point in the history
  • Loading branch information
ceyonur committed Feb 28, 2025
1 parent bcec4a4 commit 615ba2a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions consensus/dummy/dynamic_fees_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,9 @@ func testDynamicFeesStaysWithinRange(t *testing.T, test test) {
t.Fatalf("Failed to calculate extra prefix at index %d: %s", index, err)
}
nextBaseFee, err := CalcBaseFee(params.TestChainConfig, testFeeConfig, header, block.timestamp)
if err != nil {
t.Fatalf("Failed to calculate base fee at index %d: %s", index, err)
}
if nextBaseFee.Cmp(test.minFee) < 0 {
t.Fatalf("Expected fee to stay greater than %d, but found %d", test.minFee, nextBaseFee)
}
Expand Down

0 comments on commit 615ba2a

Please sign in to comment.