X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fwatchdog.t;h=bd8f576b32f8ad832ef1ed96debdc66f72a23a23;hb=aaec084cd37d3d4b12f29580a36b61a34b135504;hp=e6f036ba8f737c77a8e240bd52274da51157eccd;hpb=7108761014aa075f45d64a59afe0c2d0ba856f63;p=scpubgit%2FObject-Remote.git diff --git a/t/watchdog.t b/t/watchdog.t index e6f036b..bd8f576 100644 --- a/t/watchdog.t +++ b/t/watchdog.t @@ -4,7 +4,7 @@ use Test::More; $ENV{OBJECT_REMOTE_TEST_LOGGER} = 1; use Object::Remote::Connection; -use Object::Remote::FromData; +use Object::Remote::FromData; $SIG{ALRM} = sub { fail("Watchdog killed remote process in time"); die "test failed" }; @@ -19,9 +19,9 @@ alarm(3); eval { $remote->hang }; -like($@, qr/^Object::Remote connection lost: eof/, "Correct error message"); +like($@, qr/^Object::Remote connection lost: (?:eof|.*Broken pipe)/, "Correct error message"); -done_testing; +done_testing; __DATA__ @@ -30,12 +30,12 @@ package HangClass; use Moo; sub alive { - return 1; + return 1; } sub hang { while(1) { - sleep(1); + sleep(1); } }