Make watchdog test handle death-by-send as well as death-by-receive
Matt S Trout [Mon, 11 Aug 2014 18:16:22 +0000 (18:16 +0000)]
Changes
t/watchdog.t

diff --git a/Changes b/Changes
index e5fa5af..5f2b87f 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,3 +1,4 @@
+  - Make watchdog test handle death-by-send as well as death-by-receive
   - Use newer Future API, fix broken test
 
 0.003002 - 2013-03-19
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;