This is an automated email from the ASF dual-hosted git repository.

jdaugherty pushed a commit to branch feat/forge-grails-composite
in repository https://gitbox.apache.org/repos/asf/grails-core.git


The following commit(s) were added to refs/heads/feat/forge-grails-composite by 
this push:
     new acb868664a Poll status before failing the start in the hidden-details 
spec
acb868664a is described below

commit acb868664a606cf5e1e0074111a77a2b03cd7ab4
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()
 

Reply via email to