From 8a00d66435b48e277fef4c42ef403b7f9bd74677 Mon Sep 17 00:00:00 2001 From: Marcel Date: Fri, 15 May 2026 08:52:21 +0200 Subject: [PATCH] fix(ci): set management.server.port=0 in test profile to fix 25-min test timeout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Port 8081 was fixed by #576. With four @DirtiesContext(AFTER_EACH_TEST_METHOD) classes (22 context restarts total), the OS TIME_WAIT state holds port 8081 for ~45-60s per cycle — adding ~17 min overhead. All 1601 tests pass but surefire's 10-min timeout fires before the suite finishes. Fixes #593. Co-Authored-By: Claude Sonnet 4.6 --- backend/src/test/resources/application-test.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/test/resources/application-test.yaml b/backend/src/test/resources/application-test.yaml index 06a4ada1..e1a2f913 100644 --- a/backend/src/test/resources/application-test.yaml +++ b/backend/src/test/resources/application-test.yaml @@ -23,6 +23,8 @@ otel: # Disable trace export in tests — prevents OTLP connection attempts when no Tempo is running. # Sampling probability 0.0 means no spans are created, so no export is attempted. management: + server: + port: 0 # random port per context — prevents TIME_WAIT conflicts when @DirtiesContext restarts the context tracing: sampling: probability: 0.0