Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tudor-malene committed Sep 5, 2024
1 parent ce7fd99 commit f7b586b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions go/enclave/components/consumer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/trie"
)

func TestInvalidBlocksAreRejected(t *testing.T) {
Expand All @@ -25,7 +24,7 @@ func TestInvalidBlocksAreRejected(t *testing.T) {

for _, header := range invalidHeaders {
loopHeader := header
_, err := blockConsumer.ingestBlock(context.Background(), types.NewBlock(&loopHeader, nil, nil, &trie.StackTrie{}))
_, err := blockConsumer.ingestBlock(context.Background(), &loopHeader)
if err == nil {
t.Errorf("expected block with invalid header to be rejected but was accepted")
}
Expand Down

0 comments on commit f7b586b

Please sign in to comment.