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

jonnybot pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy-geb.git

commit 74fa37211931cfbaa06736a5bc5cb3be5d52afb6
Author: Jonny Carter <[email protected]>
AuthorDate: Tue Mar 24 14:11:58 2026 -0500

    Attempt to fix flaky test
---
 .../groovy/geb/testcontainers/PortConfigFromClassSpec.groovy        | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git 
a/integration/geb-testcontainers/src/integration-test/groovy/geb/testcontainers/PortConfigFromClassSpec.groovy
 
b/integration/geb-testcontainers/src/integration-test/groovy/geb/testcontainers/PortConfigFromClassSpec.groovy
index cdd10867..83868896 100644
--- 
a/integration/geb-testcontainers/src/integration-test/groovy/geb/testcontainers/PortConfigFromClassSpec.groovy
+++ 
b/integration/geb-testcontainers/src/integration-test/groovy/geb/testcontainers/PortConfigFromClassSpec.groovy
@@ -30,16 +30,14 @@ class PortConfigFromClassSpec extends ContainerGebSpec {
 
     static TestFileServer server
 
-    int hostPort = 8000
+    static int hostPort = 8000
 
     def setupSpec() {
         server = new TestFileServer()
+        server.start(hostPort)
     }
 
     def "should use the class field value"() {
-        given: "a server listening on port 8000"
-        server.start(8000)
-
         when: "go to localhost"
         go "/" // browser is going to 8080
 

Reply via email to