Skip to content

Commit

Permalink
Fix anvil test (#1000)
Browse files Browse the repository at this point in the history
* fix anvil test

* fix anvil test
  • Loading branch information
skudasov authored Jun 18, 2024
1 parent ee444fc commit 9d12c1e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/rpc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ func TestRPCAPI(t *testing.T) {
pm.Stop()
bn, err := client.BlockNumber(context.Background())
require.NoError(t, err)
require.Equal(t, uint64(iterations), bn)
require.GreaterOrEqual(t, uint64(iterations), bn-1)
require.LessOrEqual(t, uint64(iterations), bn+1)
})

t.Run("(anvil) test we can mine blocks with strictly N+ transactions", func(t *testing.T) {
Expand Down

0 comments on commit 9d12c1e

Please sign in to comment.