matrei commented on code in PR #15568:
URL: https://github.com/apache/grails-core/pull/15568#discussion_r3451673242


##########
grails-data-hibernate5/core/src/test/groovy/grails/gorm/tests/WhereQueryOldIssueVerificationSpec.groovy:
##########
@@ -235,13 +236,11 @@ class WhereQueryOldIssueVerificationSpec extends 
Specification {
     @Issue('https://github.com/apache/grails-core/issues/14600')
     def "findAllBy works with bidirectional hasMany relation"() {
         given: "authors with books in a bidirectional hasMany"
-        def author1 = new WqBiAuthor(name: "Stephen King").save(flush: true)
-        def book1 = new WqBiBook(title: "IT").save(flush: true)
-        def book2 = new WqBiBook(title: "The Shining").save(flush: true)
+        def author1 = new WqBiAuthor(name: "Stephen King")
+        def book1 = new WqBiBook(title: "IT")
+        def book2 = new WqBiBook(title: "The Shining")
         author1.addToBooks(book1)
         author1.addToBooks(book2)
-        book1.addToAuthors(author1)
-        book2.addToAuthors(author1)
         author1.save(flush: true)

Review Comment:
   I am asking why the referenced lines where changed, but I can see that the 
changes were reverted in 68f672b4.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to