Skip to content

Commit bd7ceb0

Browse files
authored
op-e2e: Check cannnon exit status in TestPrecompiles (ethereum-optimism#10701)
1 parent 1b9fd7a commit bd7ceb0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

op-e2e/faultproofs/precompile_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@ func runCannon(t *testing.T, ctx context.Context, sys *op_e2e.System, inputs uti
155155

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

0 commit comments

Comments
 (0)