Skip to content

[Backport release-1.19] test: use a free port in the pubsub integration tests - #1847

Merged
dapr-bot merged 1 commit into
release-1.19from
backport-1845-to-release-1.19
Oct 16, 2026
Merged

dapr-bot merged 1 commit into
release-1.19from
backport-1845-to-release-1.19

Conversation

@dapr-bot

Copy link
Copy Markdown
Collaborator

Backport ae3d3a5 from #1845.

DaprPubSubIT and DaprPubSubOutboxIT picked a random port between 8000
and 8999. DaprSpringMessagingIT runs Spring Boot on 8080 in the same
JVM and its cached context keeps the port open, so DaprPubSubIT fails
with "Port 8080 is already in use" when it draws 8080.

Ask the OS for a free port with the existing
DaprContainerFactory.allocateFreePort() instead.

Signed-off-by: Javier Aliaga <javier@diagrid.io>
(cherry picked from commit ae3d3a5)
@dapr-bot
dapr-bot requested review from a team as code owners October 15, 2026 21:06
@codecov

codecov Bot commented Oct 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.54%. Comparing base (bd602ed) to head (5ce7eeb).

Additional details and impacted files
@@               Coverage Diff               @@
##             release-1.19    #1847   +/-   ##
===============================================
  Coverage           79.54%   79.54%           
  Complexity           2676     2676           
===============================================
  Files                 267      267           
  Lines                7933     7933           
  Branches              842      842           
===============================================
  Hits                 6310     6310           
  Misses               1267     1267           
  Partials              356      356           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dapr-bot
dapr-bot merged commit 07c31e2 into release-1.19 Oct 16, 2026
24 of 25 checks passed
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