Skip to content

Commit

Permalink
simulators/eth2/engine: Fix error checking (ethereum#897)
Browse files Browse the repository at this point in the history
  • Loading branch information
marioevz authored and Eikix committed Mar 1, 2024
1 parent 03a9060 commit 72d3ee7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions simulators/eth2/engine/scenarios.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func TestRPCError(t *hivesim.T, env *tn.Environment,
t.Fatalf("FAIL: %v", err)
}

if err := testnet.VerifyELHeads(ctx); err == nil {
if err := testnet.VerifyELHeads(ctx); err != nil {
t.Fatalf("FAIL: Expected different heads after spoof %v", err)
}
}
Expand Down Expand Up @@ -1225,7 +1225,7 @@ func SyncingWithInvalidChain(
// Block can't contain an executable payload
t.Fatalf("FAIL: Head of the chain is not a bellatrix fork block")
}
if payload, err := versionedBlock.ExecutionPayload(); err == nil {
if payload, err := versionedBlock.ExecutionPayload(); err != nil {
t.Fatalf(
"FAIL: error getting execution payload: %v",
err,
Expand Down

0 comments on commit 72d3ee7

Please sign in to comment.