Make watchdog test handle death-by-send as well as death-by-receive
[scpubgit/Object-Remote.git] / t / watchdog.t
index 22e29ce..bd8f576 100644 (file)
@@ -19,7 +19,7 @@ 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;