From: Peter Rabbitson Date: Fri, 27 Dec 2013 05:28:04 +0000 (+0100) Subject: Better instrument memcached test against failures like 106c81a5 X-Git-Tag: v0.08260~59 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0e08abb27b072e1e0f38d5639442a9275781c6e7;p=dbsrgits%2FDBIx-Class.git Better instrument memcached test against failures like 106c81a5 --- diff --git a/t/84serialize.t b/t/84serialize.t index 04e16cb..ffe0368 100644 --- a/t/84serialize.t +++ b/t/84serialize.t @@ -7,9 +7,10 @@ use lib qw(t/lib); use DBICTest; use Storable qw(dclone freeze nfreeze thaw); use Scalar::Util qw/refaddr/; +use Carp; sub ref_ne { - my ($refa, $refb) = map { refaddr $_ or die "$_ is not a reference!" } @_[0,1]; + my ($refa, $refb) = map { refaddr $_ or croak "$_ is not a reference!" } @_[0,1]; cmp_ok ( $refa, '!=', @@ -66,7 +67,8 @@ if ($ENV{DBICTEST_MEMCACHED}) { my $key = 'tmp_dbic_84serialize_memcached_test'; $stores{memcached} = sub { - $memcached->set( $key, $_[0], 60 ); + $memcached->set( $key, $_[0], 60 ) + or die "Unable to insert into $ENV{DBICTEST_MEMCACHED} - is server running?"; local $DBIx::Class::ResultSourceHandle::thaw_schema = $schema; return $memcached->get($key); };