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 ce8dac50fd034e1adabf9d76d0577af2576a3acc
Author: Walter Duque de Estrada <[email protected]>
AuthorDate: Mon Feb 23 18:14:04 2026 -0600

    fixed broken test
---
 .../orm/hibernate/connections/PartitionedMultiTenancySpec.groovy      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/grails-data-hibernate7/core/src/test/groovy/org/grails/orm/hibernate/connections/PartitionedMultiTenancySpec.groovy
 
b/grails-data-hibernate7/core/src/test/groovy/org/grails/orm/hibernate/connections/PartitionedMultiTenancySpec.groovy
index 4a22696abf..25b7e3f4a9 100644
--- 
a/grails-data-hibernate7/core/src/test/groovy/org/grails/orm/hibernate/connections/PartitionedMultiTenancySpec.groovy
+++ 
b/grails-data-hibernate7/core/src/test/groovy/org/grails/orm/hibernate/connections/PartitionedMultiTenancySpec.groovy
@@ -119,7 +119,7 @@ class PartitionedMultiTenancySpec extends 
HibernateGormDatastoreSpec {
         then: "The results are correct"
         author.tmp != null // the beforeInsert event was triggered
         MultiTenantAuthor.findByName("Stephen King")
-        MultiTenantAuthor.findAll("from MultiTenantAuthor a").size() == 1
+        MultiTenantAuthor.findAll("from MultiTenantAuthor a", 
Collections.emptyMap()).size() == 1
         MultiTenantAuthor.count() == 1
 
         when: "An a transaction is used"
@@ -151,7 +151,7 @@ class PartitionedMultiTenancySpec extends 
HibernateGormDatastoreSpec {
         then: "the correct tenant is used and no data exists for 'books'"
         MultiTenantAuthor.withNewSession { MultiTenantAuthor.count() } == 0
         MultiTenantAuthor.withNewSession { 
MultiTenantAuthor.findByName("Stephen King") } == null
-        MultiTenantAuthor.withNewSession { MultiTenantAuthor.findAll("from 
MultiTenantAuthor a").size() } == 0
+        MultiTenantAuthor.withNewSession { MultiTenantAuthor.findAll("from 
MultiTenantAuthor a", Collections.emptyMap()).size() } == 0
 
         when: "Save data for 'books' tenant"
         // Clear any stale first-level cache before switching to explicit 
tenant contexts

Reply via email to