From: Peter Rabbitson Date: Thu, 10 Mar 2016 20:32:35 +0000 (+0100) Subject: Fix failing test case missed during da9346a03 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FDBIx-Class.git;a=commitdiff_plain;h=90a5b0237843707bba83646e8d14f6bf4b782ba5 Fix failing test case missed during da9346a03 Adjust CI to execute one job as a non-poisoning noisy tracer --- diff --git a/.travis.yml b/.travis.yml index 250679e..6c63f90 100644 --- a/.travis.yml +++ b/.travis.yml @@ -187,8 +187,8 @@ matrix: dist: precise env: - CLEANTEST=false - - POISON_ENV=true - DBIC_TRACE=1 + - DBICTEST_VERSION_WARNS_INDISCRIMINATELY=1 - BREWVER=5.16.3 - BREWOPTS="-Duseithreads -Dusemorebits" diff --git a/t/34exception_action.t b/t/34exception_action.t index c9c0f6b..d326bf7 100644 --- a/t/34exception_action.t +++ b/t/34exception_action.t @@ -102,14 +102,14 @@ for my $ap (qw( # make sure an exception_action can replace $@ with an antipattern $schema->exception_action(sub { die $ap->new }); - warnings_like { + warnings_exist { eval { $throw->() }; isa_ok $@, $ap; } $exp_warn, 'proper warning on antipattern encountered within exception_action'; # and make sure that the rethrow works $schema->exception_action(sub { die @_ }); - warnings_like { + warnings_exist { eval { $schema->txn_do (sub { die $ap->new }); };