Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[acceptance] Bug: wrong exit-code in CI for runtime errors #244

Open
scharissis opened this issue Mar 17, 2025 · 0 comments
Open

[acceptance] Bug: wrong exit-code in CI for runtime errors #244

scharissis opened this issue Mar 17, 2025 · 0 comments
Labels
A-acceptance-testing Area: Acceptance Testing

Comments

@scharissis
Copy link
Contributor

Works locally, but not in CI.

=== Failed
=== FAIL: cmd TestExitCodeBehavior/Runtime_error_should_exit_with_code_2 (0.09s)
    main_test.go:225: Running op-acceptor with testdir=/tmp/op-acceptor-test-1287960304/non-existent-dir, gate=test-gate-passes, validators=/tmp/op-acceptor-test-1287960304/test-validators.yaml
    main_test.go:236: Exit code: 1
    main_test.go:121: 
                Error Trace:    /root/project/op-acceptor/cmd/main_test.go:121
                Error:          Not equal: 
                                expected: 2
                                actual  : 1
                Test:           TestExitCodeBehavior/Runtime_error_should_exit_with_code_2
                Messages:       Unexpected exit code

=== FAIL: cmd TestExitCodeBehavior (8.50s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-acceptance-testing Area: Acceptance Testing
Projects
Status: Backlog
Development

No branches or pull requests

1 participant