Skip to content

Commit 2c80103

Browse files
committed
test(oauth): serialize auth path assertions
Take the shared test environment lock while comparing the generated missing-auth message with the active auth-file path. This prevents parallel environment guards from changing the path between the two reads on Windows CI. Signed-off-by: Nightt <87569709+nightt5879@users.noreply.github.com>
1 parent cba70ce commit 2c80103

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

crates/tui/src/oauth.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,7 @@ mod tests {
431431

432432
#[test]
433433
fn missing_auth_message_mentions_oauth_checked_locations() {
434+
let _lock = crate::test_support::lock_test_env();
434435
let message = missing_auth_message();
435436

436437
assert!(message.contains("OpenAI Codex OAuth credentials not found"));

0 commit comments

Comments
 (0)