--- a/t/02_connection.t
+++ b/t/02_connection.t
@@ -60,6 +60,6 @@ like ($cp->run('--timeout 1'), qr{^$labe
 $cp->reset_path();
 
 $t=qq{$S fails on nonexisting socket};
-like ($cp->run('--port=1023'), qr{^$label CRITICAL:  could not connect to server}, $t);
+like ($cp->run('--port=1023'), qr{^$label CRITICAL:.*could not connect to server}, $t);
 
 exit;
