Skip to content

Commit aeb1a60

Browse files
committed
#1265 Updated test
Fixed typo with the variable
1 parent 635bcc4 commit aeb1a60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

grails-datastore-gorm-tck/src/main/groovy/grails/gorm/tests/DirtyCheckingAfterListenerSpec.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ class DirtyCheckingAfterListenerSpec extends GormDatastoreSpec {
3737
void "test state change from listener update the object"() {
3838

3939
when:
40-
new Player(name: "John").save()
40+
Player john = new Player(name: "John").save()
4141

4242
then:
4343
new PollingConditions().eventually { listener.isExecuted && Player.count()}
4444

4545
when:
4646
session.flush()
4747
session.clear()
48-
Player john = Player.get(john.id)
48+
john = Player.get(john.id)
4949

5050
then:
5151
john.attributes

0 commit comments

Comments
 (0)