Skip to content

fix: use protocol-qualified port strings in testcontainers MappedPort calls - #57

Merged
pikann merged 2 commits into
31-epic-authentication-authorizationfrom
copilot/sub-pr-54-another-one
Mar 25, 2026
Merged

pikann merged 2 commits into
31-epic-authentication-authorizationfrom
copilot/sub-pr-54-another-one

Conversation

Copilot AI commented Mar 25, 2026 •

Copy link
Copy Markdown
Contributor

Testcontainers keys its port map by <port>/<proto>, so calling MappedPort with a bare port number ("5432", "6379") can silently fail to resolve the mapped host port on some setups.

Changes

  • services/api/test/e2e/api_flow_test.go: Updated MappedPort calls to use "5432/tcp" and "6379/tcp", matching the strings already declared in ExposedPorts.
// Before
pgPort, err := pgC.MappedPort(ctx, "5432")
redisPort, err := redisC.MappedPort(ctx, "6379")

// After
pgPort, err := pgC.MappedPort(ctx, "5432/tcp")
redisPort, err := redisC.MappedPort(ctx, "6379/tcp")

📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.

Copilot AI changed the title [WIP] [WIP] Address feedback from review on epic authentication authorization PR fix: use protocol-qualified port strings in testcontainers MappedPort calls Mar 25, 2026
Copilot AI requested a review from pikann March 25, 2026 13:43
@pikann
pikann marked this pull request as ready for review March 25, 2026 13:56
@pikann
pikann merged commit 79f699c into 31-epic-authentication-authorization Mar 25, 2026
4 checks passed
@pikann
pikann deleted the copilot/sub-pr-54-another-one branch March 25, 2026 13:56
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