--- ./tests/scripts/common.sh_orig	2026-02-16 03:38:09.905525822 -0600
+++ ./tests/scripts/common.sh	2026-02-16 03:39:54.699785451 -0600
@@ -70,7 +70,7 @@
 	local PORT=$1
 	reserve_port $PORT
 	have_port_finder
-	if ! $PFCMD -an|grep -v ::|grep "[\:\.]$PORT" >/dev/null 2>&1; then
+    if ! $PFCMD -an|grep LISTEN|grep "[\:\.]$PORT" >/dev/null 2>&1; then
 		return 1
 	fi
 	unreserve_port $PORT
@@ -79,7 +79,7 @@
 check_if_port_listening() {
 	local PORT=$1
 	have_port_finder
-	$PFCMD -anl|grep -v ::|grep "[\:\.]$PORT"|grep LISTEN >/dev/null 2>&1
+    $PFCMD -anl|grep LISTEN|grep "[\:\.]$PORT"|grep LISTEN >/dev/null 2>&1 
 }
 
 # Find a port number not currently in use.
