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 90e301dc86b450296b83c2767b7b87c3a13bfdd1
Author: Walter Duque de Estrada <[email protected]>
AuthorDate: Sat Feb 7 22:42:48 2026 -0600

    Fix AttachMethodSpec
---
 .../apache/grails/data/testing/tck/tests/AttachMethodSpec.groovy  | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git 
a/grails-datamapping-tck/src/main/groovy/org/apache/grails/data/testing/tck/tests/AttachMethodSpec.groovy
 
b/grails-datamapping-tck/src/main/groovy/org/apache/grails/data/testing/tck/tests/AttachMethodSpec.groovy
index c1d77630db..d824568401 100644
--- 
a/grails-datamapping-tck/src/main/groovy/org/apache/grails/data/testing/tck/tests/AttachMethodSpec.groovy
+++ 
b/grails-datamapping-tck/src/main/groovy/org/apache/grails/data/testing/tck/tests/AttachMethodSpec.groovy
@@ -50,17 +50,11 @@ class AttachMethodSpec extends GrailsDataTckSpec {
         !test.attached
 
         when:
-        test.attach()
+        test = test.attach()
 
         then:
         manager.session.contains(test)
         test.isAttached()
         test.attached
-
-        when:
-        test.discard()
-
-        then:
-        test == test.attach()
     }
 }

Reply via email to