Skip to content

Increase push timeout from 5s to 10s in PackageUpdateResourceTests - #7444

Merged
nkolev92 merged 2 commits into
devfrom
copilot/update-test-timeout
Jun 2, 2026
Merged

nkolev92 merged 2 commits into
devfrom
copilot/update-test-timeout

Conversation

Copilot AI commented Jun 2, 2026 •

Copy link
Copy Markdown
Contributor

Push_WithAnHttpSourceAndAllowInsecureConnections_NupkgOnly_Errors and other tests in PackageUpdateResourceTests were flaky due to a hardcoded 5s timeoutInSecond racing against CI wall-clock time.

Changes

  • PackageUpdateResourceTests: Added PushTimeoutInSeconds = 10 constant (mirrors the existing TempApiKeyRequestTimeoutInSeconds = 10 pattern that was partially applied); replaced all 8 hardcoded timeoutInSecond: 5 callsites with the constant.
  • HttpRetryHandlerTests: Reverted an incorrect 5→10s change to LargeTimeout that was mistakenly applied to the wrong class.
// Before (scattered across 8 call sites)
timeoutInSecond: 5,

// After
private const int PushTimeoutInSeconds = 10;
...
timeoutInSecond: PushTimeoutInSeconds,

Copilot AI changed the title Increase HttpRetryHandlerTests LargeTimeout from 5s to 10s Increase push timeout from 5s to 10s in PackageUpdateResourceTests Jun 2, 2026
@nkolev92
nkolev92 marked this pull request as ready for review June 2, 2026 20:19
@nkolev92
nkolev92 requested a review from a team as a code owner June 2, 2026 20:19
@nkolev92
nkolev92 requested a review from donnie-msft June 2, 2026 20:19
@nkolev92 nkolev92 added the Engineering Changes related to the build infrastructure of the repo and that do not change product code label Jun 2, 2026
@nkolev92
nkolev92 enabled auto-merge (squash) June 2, 2026 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Engineering Changes related to the build infrastructure of the repo and that do not change product code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants