Skip to content

Commit

Permalink
CRM-18048 - only pop the global stack once.
Browse files Browse the repository at this point in the history
This change avoids breaking other report tests.
  • Loading branch information
jmcclelland committed Oct 24, 2017
1 parent e2d932c commit 144c290
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tests/phpunit/CiviTest/CiviReportTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,8 @@ public function getReportOutputAsCsv($reportClass, $inputParams) {
file_put_contents($tmpFile, $csvContent);
}
catch (Exception $e) {
// print_r($e->getCause()->getUserInfo());
CRM_Utils_GlobalStack::singleton()->pop();
throw $e;
}
CRM_Utils_GlobalStack::singleton()->pop();

return $tmpFile;
}

Expand Down

0 comments on commit 144c290

Please sign in to comment.