Skip to content

Commit 45a2f64

Browse files
author
graeme
committed
fix for GRAILS-2525
git-svn-id: https://svn.codehaus.org/grails/trunk@6814 1cfb16fd-6d17-0410-8ff1-b7e8e1e2867d
1 parent 116fab5 commit 45a2f64

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

scripts/TestApp.groovy

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -384,14 +384,7 @@ target(runIntegrationTests: "Runs Grails' tests under the test/integration direc
384384
}
385385

386386
def callable = { status ->
387-
def result = invocation()
388-
// don't flush the session if there are errors
389-
if (result.errorCount() > 0) {
390-
interceptor?.clear()
391-
}
392-
else {
393-
interceptor?.flush()
394-
}
387+
invocation()
395388
status?.setRollbackOnly()
396389
}
397390
if(test.isTransactional()) {

0 commit comments

Comments
 (0)