diff --git a/test/debugger/helper-debugger-repl.js b/test/debugger/helper-debugger-repl.js
index d7a5e745de0ebd..602ab1c05e53d6 100644
--- a/test/debugger/helper-debugger-repl.js
+++ b/test/debugger/helper-debugger-repl.js
@@ -108,7 +108,7 @@ function addTest(input, output) {
 }
 
 var handshakeLines = [
-  /listening on port \d+/,
+  /listening on /,
   /connecting.* ok/
 ];