Skip to content

Commit

Permalink
fix for GRAILS-8736 "Failed Assume crashes Grails unit test"
Browse files Browse the repository at this point in the history
  • Loading branch information
graemerocher committed Feb 14, 2013
1 parent 0a5bda6 commit 514bec9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class SuiteRunListener extends RunListener {
void testAssumptionFailure(Failure failure) {
// assumptions (and AssumptionViolatedException) are specific to JUnit,
// and are treated as ordinary failures
getPerTestRunListener(description).testFailure(failure)
getPerTestRunListener(failure.description).testFailure(failure)
}

void testFinished(Description description) {
Expand All @@ -73,7 +73,7 @@ class SuiteRunListener extends RunListener {
// nothing to do
}

private getPerTestRunListener(description = null) {
private PerTestRunListener getPerTestRunListener(Description description = null) {
if (description && perTestListener?.name != description.className) {
perTestListener?.finish()

Expand Down

0 comments on commit 514bec9

Please sign in to comment.