From 01c970c4dc1180329d73db5033a0890a6fcbdb46 Mon Sep 17 00:00:00 2001 From: Pascal Zimmermann Date: Thu, 26 Nov 2026 21:14:42 +0100 Subject: [PATCH] test: Give ApplicationsTest.scale a shorter startup timeout The memory change in scale restarts the application. The default startup timeout of that restart (5 minutes) equals the test's own StepVerifier timeout, so a stalled start only surfaced as a generic VerifySubscriber timeout. A 3 minute startup timeout makes the scale operation fail first, with an error that names the actual cause. --- .../java/org/cloudfoundry/operations/ApplicationsTest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/integration-test/src/test/java/org/cloudfoundry/operations/ApplicationsTest.java b/integration-test/src/test/java/org/cloudfoundry/operations/ApplicationsTest.java index 7238e9651e..87abe701be 100644 --- a/integration-test/src/test/java/org/cloudfoundry/operations/ApplicationsTest.java +++ b/integration-test/src/test/java/org/cloudfoundry/operations/ApplicationsTest.java @@ -1654,6 +1654,11 @@ public void scale() throws IOException { .instances(2) .memoryLimit(65) .name(applicationName) + // The memory change restarts the application. + // Its default startup timeout (5 minutes) + // equals the test's, so a stalled start + // would only show up as a test timeout. + .startupTimeout(Duration.ofMinutes(3)) .build())) .then(requestGetApplication(this.cloudFoundryOperations, applicationName)) .map(ApplicationDetail::getRunningInstances)