This is an automated email from the ASF dual-hosted git repository.
jdaugherty pushed a commit to branch 8.1.x
in repository https://gitbox.apache.org/repos/asf/grails-core.git
The following commit(s) were added to refs/heads/8.1.x by this push:
new c8979d5cdc Poll status before failing the start in the hidden-details
spec
c8979d5cdc is described below
commit c8979d5cdcc3ab8126be1105a92bfbbee68d7abf
Author: James Daugherty <[email protected]>
AuthorDate: Thu Oct 8 09:50:06 2026 -0400
Poll status before failing the start in the hidden-details spec
A failed start only waits to tell a page about the failure when a page
polled the status within the last three seconds. This feature last
polled before waiting for the recording browser to open, and launching
that browser, a JVM compiling RecordingBrowser.java, can take longer
than that on Windows CI. The start then counted as unwatched and closed
the port before the FAILED status could be read. Poll once more after
the browser opens, as a watching page would have, before failing the
start.
(cherry picked from commit ccf59f55a74df44e13e46c9943bf786c82bc6d4a)
---
.../test/groovy/org/apache/grails/startup/StartupProgressSpec.groovy | 3 +++
1 file changed, 3 insertions(+)
diff --git
a/grails-startup-progress/src/test/groovy/org/apache/grails/startup/StartupProgressSpec.groovy
b/grails-startup-progress/src/test/groovy/org/apache/grails/startup/StartupProgressSpec.groovy
index 8cd0cbb823..7cff20e229 100644
---
a/grails-startup-progress/src/test/groovy/org/apache/grails/startup/StartupProgressSpec.groovy
+++
b/grails-startup-progress/src/test/groovy/org/apache/grails/startup/StartupProgressSpec.groovy
@@ -375,6 +375,9 @@ class StartupProgressSpec extends Specification {
and: 'with nothing to sign in for, the address opened carries no token'
awaitOpened(opened) == "http://localhost:${port}/".toString()
+ and: 'the page polls again, as it would have while the browser opened,
so the failed start knows it is watched'
+ status()?.phase == 'CREATING_BEANS'
+
when: 'the start fails'
Gates.openAll()