Skip to content

Commit

Permalink
op-e2e: Check cannnon exit status in TestPrecompiles (ethereum-optimi…
Browse files Browse the repository at this point in the history
  • Loading branch information
Inphi authored Jun 1, 2024
1 parent 1b9fd7a commit bd7ceb0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions op-e2e/faultproofs/precompile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ func runCannon(t *testing.T, ctx context.Context, sys *op_e2e.System, inputs uti

state, err := parseState(filepath.Join(proofsDir, "final.json.gz"))
require.NoError(t, err, "failed to parse state")
require.True(t, state.Exited, "cannon did not exit")
require.Zero(t, state.ExitCode, "cannon failed with exit code %d", state.ExitCode)
t.Logf("Completed in %d steps", state.Step)
}

Expand Down

0 comments on commit bd7ceb0

Please sign in to comment.