Skip to content

Ensuring that multiple dummy servers can use the same handlers#1603

Merged
james00012 merged 2 commits intogruntwork-io:mainfrom
Malhavok:bug/mux-for-dummy-server-with-handler-1602
Oct 26, 2025
Merged

Ensuring that multiple dummy servers can use the same handlers#1603
james00012 merged 2 commits intogruntwork-io:mainfrom
Malhavok:bug/mux-for-dummy-server-with-handler-1602

Conversation

@Malhavok
Copy link
Copy Markdown

Description

Fixes #1602.

Replaced the default http.HandleFunc with a unique ServeMux for each instance.
Added a test that confirms the right behavior.
Nothing gets broken nor any behavior changes. Except for the bug I've filed earlier.

TODOs

Read the Gruntwork contribution guidelines.
^ I've read that, but I'm still kinda lost about all the things below v.v Sorry v.v

  • Update the docs.
  • Run the relevant tests successfully, including pre-commit checks.
  • Ensure any 3rd party code adheres with our license policy or delete this line if its not applicable.
  • Include release notes. If this PR is backward incompatible, include a migration guide.
  • Make a plan for release of the functionality in this PR. If it delivers value to an end user, you are responsible for ensuring it is released promptly, and correctly. If you are not a maintainer, you are responsible for finding a maintainer to do this for you.

Release Notes (draft)

RunDummyServerWithHandlersE now uses a unique ServeMux each.

Migration Guide

None needed.

@Malhavok Malhavok force-pushed the bug/mux-for-dummy-server-with-handler-1602 branch from 0413797 to 0853bb5 Compare October 16, 2025 14:46
Copy link
Copy Markdown
Contributor

@james00012 james00012 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Contributor

@james00012 james00012 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Contributor

@yhakbar yhakbar left a comment

Choose a reason for hiding this comment

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

LGTM as well. @james00012 are you willing to merge this and release it?

@james00012 james00012 merged commit a82b906 into gruntwork-io:main Oct 26, 2025
2 checks passed
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.

RunDummyServerWithHandlersE is unable to start two services with the same endpoints

3 participants