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

borinquenkid pushed a commit to branch 8.0.x-hibernate7
in repository https://gitbox.apache.org/repos/asf/grails-core.git
commit 251a15f1820effa6b5cc9d52a8ccc25cedfb0be1
Author: Walter Duque de Estrada <[email protected]>
AuthorDate: Sun Feb 8 21:09:47 2026 -0600

    fixed rlike spec
---
 grails-data-hibernate7/core/build.gradle                         | 2 +-
 .../src/test/groovy/grails/gorm/specs/RLikeHibernate7Spec.groovy | 9 ++++-----
 2 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/grails-data-hibernate7/core/build.gradle 
b/grails-data-hibernate7/core/build.gradle
index 2eaff873ea..9ba23bd2bb 100644
--- a/grails-data-hibernate7/core/build.gradle
+++ b/grails-data-hibernate7/core/build.gradle
@@ -81,7 +81,7 @@ dependencies {
         exclude group:'xml-apis', module:'xml-apis'
     }
 
-    testImplementation platform('org.testcontainers:testcontainers-bom:1.20.4')
+    testImplementation platform('org.testcontainers:testcontainers-bom:2.0.3')
     testImplementation 'org.testcontainers:testcontainers'
     testImplementation 'org.postgresql:postgresql:42.7.5'
     testImplementation 'org.testcontainers:postgresql'
diff --git 
a/grails-data-hibernate7/core/src/test/groovy/grails/gorm/specs/RLikeHibernate7Spec.groovy
 
b/grails-data-hibernate7/core/src/test/groovy/grails/gorm/specs/RLikeHibernate7Spec.groovy
index c2026ed023..09b77a87bb 100644
--- 
a/grails-data-hibernate7/core/src/test/groovy/grails/gorm/specs/RLikeHibernate7Spec.groovy
+++ 
b/grails-data-hibernate7/core/src/test/groovy/grails/gorm/specs/RLikeHibernate7Spec.groovy
@@ -18,6 +18,7 @@
  */
 package grails.gorm.specs
 
+import org.testcontainers.DockerClientFactory
 import org.testcontainers.oracle.OracleContainer
 import spock.lang.Requires
 
@@ -35,11 +36,9 @@ import 
org.testcontainers.dockerclient.DockerClientProviderStrategy
 // In your Spock @Requires or @IgnoreIf closure:
 @Requires({
     try {
-        DockerClientProviderStrategy.getFirstValidStrategy()
-        return true
-    } catch (Exception e) {
-        return false
-    }
+        DockerClientFactory.instance().client()
+        true
+    } catch (ignored) { false }
 })
 class RLikeHibernate7Spec extends HibernateGormDatastoreSpec {
 

Reply via email to