[Rt-commit] rt branch, 3.9-trunk, updated. rt-3.8.8-611-g9912830
Shawn Moore
sartak at bestpractical.com
Fri Aug 27 01:17:33 EDT 2010
The branch, 3.9-trunk has been updated
via 99128309193852f902792607f4aabcb5b1934058 (commit)
from e8da5d52e3c75402fa8859d7096422030833cec8 (commit)
Summary of changes:
lib/RT/Test/Web.pm | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 99128309193852f902792607f4aabcb5b1934058
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Fri Aug 27 01:19:51 2010 -0400
Clear leftover warnings during no_leftover_warnings_ok
diff --git a/lib/RT/Test/Web.pm b/lib/RT/Test/Web.pm
index 37ef90c..feff736 100644
--- a/lib/RT/Test/Web.pm
+++ b/lib/RT/Test/Web.pm
@@ -239,7 +239,9 @@ sub no_leftover_warnings_ok {
local $Test::Builder::Level = $Test::Builder::Level + 1;
- my @warnings = @{ $self->{stashed_server_warnings} || [] };
+ # we clear the warnings because we don't want to break later tests
+ # in case there *are* leftover warnings
+ my @warnings = splice @{ $self->{stashed_server_warnings} || [] };
Test::More::is(@warnings, 0, $name);
for (@warnings) {
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list