[Rt-commit] rt branch, 4.2/web-attachs-processing, updated. rt-4.0.8-580-gb85aa82
Ruslan Zakirov
ruz at bestpractical.com
Fri Nov 23 08:06:23 EST 2012
The branch, 4.2/web-attachs-processing has been updated
via b85aa82b247eb86fca50e838d96ab1166b82ee65 (commit)
from 05986266a707556d8d829c66372e825667582ac8 (commit)
Summary of changes:
t/web/csrf.t | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit b85aa82b247eb86fca50e838d96ab1166b82ee65
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date: Fri Nov 23 17:03:30 2012 +0400
ignore system dependend warning in a test
I don't see uninit warning, but our smoking system
does. Test for warning we expect and throw red flag
if it's anything besides uninit and expected.
diff --git a/t/web/csrf.t b/t/web/csrf.t
index 64bd22a..21331e9 100644
--- a/t/web/csrf.t
+++ b/t/web/csrf.t
@@ -101,8 +101,12 @@ my $link = $m->find_link(text_regex => qr{resume your request});
$m->get_ok($broken_url);
$m->content_like(qr/Queue\s+could not be loaded/);
$m->title_is('RT Error');
-$m->next_warning_like(qr/Queue\s+could not be loaded/);
-$m->no_leftover_warnings_ok;
+{ # XXX: on some systems it can be combination of uninit and Queue warns
+ my @warnings = $m->get_warnings;
+ ok grep /Queue\s+could not be loaded/, @warnings;
+ ok !grep !/Queue\s+could not be loaded|Use of uninitialized value/,
+ @warnings;
+}
# The token doesn't work for other pages, or other arguments to the same page.
$m->add_header(Referer => undef);
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list