Skip to content

Await rate-limited API test requests before asserting - #89

Merged
aaronparker merged 2 commits into
mainfrom
copilot/fix-run-api-tests-26-x
Oct 12, 2026
Merged

aaronparker merged 2 commits into
mainfrom
copilot/fix-run-api-tests-26-x

Conversation

Copilot AI commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

The API Tests job failed because two tests called Supertest’s .expect() on the Promise returned by makeRateLimitedRequest. Update both tests to await the response before checking its content type and body.

  • Request validation: Await the request that checks behavior without a User-Agent.
  • App API: Await the request that validates Microsoft Edge app details.
const res = await makeRateLimitedRequest('/app/MicrosoftEdge');
assert.match(res.headers['content-type'], /json/);

Co-authored-by: aaronparker <8227455+aaronparker@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix failing GitHub Actions job Run API Tests (26.x) Await rate-limited API test requests before asserting Oct 12, 2026
Copilot AI requested a review from aaronparker October 12, 2026 04:24
@aaronparker
aaronparker marked this pull request as ready for review October 12, 2026 04:27
@aaronparker
aaronparker merged commit d1802f5 into main Oct 12, 2026
3 checks passed
@aaronparker
aaronparker deleted the copilot/fix-run-api-tests-26-x branch October 12, 2026 04:27
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