Skip to content

Fix test on Windows#905

Open
martincostello wants to merge 1 commit intoprometheus:mainfrom
martincostello:fix-test-on-windows
Open

Fix test on Windows#905
martincostello wants to merge 1 commit intoprometheus:mainfrom
martincostello:fix-test-on-windows

Conversation

@martincostello
Copy link
Copy Markdown

Fix test that fails on Windows found while working on #904.

Fix test that fails on Windows.

Signed-off-by: martincostello <martin@martincostello.com>
@martincostello martincostello marked this pull request as ready for review May 3, 2026 19:55
Copilot AI review requested due to automatic review settings May 3, 2026 19:55
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR makes a targeted test fix for cross-platform compatibility in the HTTP client config tests. It updates the missing bearer token assertion so the test no longer depends on OS-specific file-open error text, which fits the codebase’s existing focus on wrapping lower-level I/O errors with stable higher-level messages.

Changes:

  • Relax the string assertion in TestMissingBearerAuthFile to check only the stable wrapped portion of the error.
  • Add an os.ErrNotExist assertion so the test still verifies the underlying failure precisely across platforms.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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