Skip to content

Update headers after refreshing token during E2E tests #1798

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

Merged
merged 1 commit into from
Jun 20, 2025

Conversation

aholstrup1
Copy link
Collaborator

❔What, Why & How

Update headers after refreshing token during E2E tests

@Copilot Copilot AI review requested due to automatic review settings June 20, 2025 11:45
@aholstrup1 aholstrup1 requested a review from a team as a code owner June 20, 2025 11:45
Copy link
Contributor

@Copilot 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 ensures updated headers are fetched after every token refresh during E2E tests.

  • Removed the loop counter and its conditional check
  • Now unconditionally refreshes headers right after refreshing the token
Comments suppressed due to low confidence (1)

e2eTests/e2eTestHelper.psm1:285

  • Unconditionally fetching headers on each iteration can degrade test performance; consider limiting calls to when the token actually changes or using a controlled interval.
        $headers = GetHeaders -token $ENV:GH_TOKEN -repository $repository

@aholstrup1 aholstrup1 merged commit 5ebd9bb into main Jun 20, 2025
35 checks passed
@aholstrup1 aholstrup1 deleted the aholstrup1/waitworkflow branch June 23, 2025 06:20
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.

3 participants