Skip to content

fix(agent): pass open_browser in the auth recovery test fixture - #254

Merged
yuval-k merged 1 commit into
mainfrom
fix/auth-recovery-test-build
Nov 13, 2026
Merged

yuval-k merged 1 commit into
mainfrom
fix/auth-recovery-test-build

Conversation

@ilackarms

Copy link
Copy Markdown
Collaborator

main has failed Test and lint since a33f11e. #241 added auth_recovery_tests.rs, which calls run_session with 10 arguments, and #231 added an open_browser: bool parameter to run_session. Each passed CI on its own; together they don't compile:

error[E0061]: this function takes 11 arguments but 10 arguments were supplied
   --> crates/agent/src/remote/auth_recovery_tests.rs:205:13

This passes false. The flag only decides whether oidc::enroll launches a browser, so it doesn't change what these tests check, and a test should never open one.

The test module is Linux-only (cfg(all(test, target_os = "linux"))), so the break doesn't show up in a macOS build. It also turns Test and lint red on every open PR, since PR checks build against main.

#241 and #231 merged independently: #241's test calls run_session with 10 arguments and #231 added the open_browser parameter, so main no longer compiles the Linux-only auth_recovery_tests module.
@ilackarms
ilackarms requested a review from yuval-k November 13, 2026 14:46
@yuval-k
yuval-k merged commit c68d8ca into main Nov 13, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants