Skip to content

Use free port in eventbus test#594

Merged
adamdickmeiss merged 5 commits into
mainfrom
freeport-in-eventbus-test
May 13, 2026
Merged

Use free port in eventbus test#594
adamdickmeiss merged 5 commits into
mainfrom
freeport-in-eventbus-test

Conversation

@adamdickmeiss
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings May 13, 2026 14:59
@adamdickmeiss adamdickmeiss changed the title Use Free port in eventbus test Use free port in eventbus test May 13, 2026
@adamdickmeiss adamdickmeiss requested a review from skomorokh May 13, 2026 15:01
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the broker event bus integration test to avoid using a hard-coded Postgres port when validating connection failure behavior, reducing the chance of port collisions in CI/local runs.

Changes:

  • Use testutil.GetFreePort(t) to select an ephemeral local port for TestFailedToConnect.
  • Build the Postgres DSN dynamically with the selected port.

Comment thread broker/test/events/eventbus_test.go Outdated
Comment thread broker/test/events/eventbus_test.go Outdated
adamdickmeiss and others added 2 commits May 13, 2026 17:02
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 13, 2026 15:04
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread broker/test/events/eventbus_test.go Outdated
Copilot AI review requested due to automatic review settings May 13, 2026 15:10
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@adamdickmeiss adamdickmeiss merged commit 64466b2 into main May 13, 2026
8 checks passed
@adamdickmeiss adamdickmeiss deleted the freeport-in-eventbus-test branch May 13, 2026 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants