Skip to content

Fix serveAvailableExtensions test - #10085

Merged
johnpryan merged 1 commit into
flutter:masterfrom
johnpryan:fix-devtools-extensions-api-unc-test
Nov 11, 2026
Merged

johnpryan merged 1 commit into
flutter:masterfrom
johnpryan:fix-devtools-extensions-api-unc-test

Conversation

@johnpryan

Copy link
Copy Markdown
Contributor

This test wasn't passing the correct X-DevTools-Request header.

This fixes it by using the new serveExtensions helper, which includes the header on each request.

This test wasn't passing the correct X-DevTools-Request header.

This fixes it by using the new serveExtensions helper, which includes
the header on each request.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request refactors devtools_extensions_api_test.dart by adding an optional packageRootUriOverride parameter to the serveExtensions helper function. This parameter allows overriding the package root URI property in the request query parameters. Additionally, a test case has been simplified to use this helper function instead of manually constructing and handling the request. I have no feedback to provide.

@johnpryan
johnpryan merged commit b5d49e4 into flutter:master Nov 11, 2026
51 of 52 checks passed
@johnpryan
johnpryan deleted the fix-devtools-extensions-api-unc-test branch November 11, 2026 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants