about summary refs log tree commit homepage
path: root/t/t0024-pipelined-sendfile-response.sh
diff options
context:
space:
mode:
Diffstat (limited to 't/t0024-pipelined-sendfile-response.sh')
-rwxr-xr-xt/t0024-pipelined-sendfile-response.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t0024-pipelined-sendfile-response.sh b/t/t0024-pipelined-sendfile-response.sh
index d98be5f..cfd8979 100755
--- a/t/t0024-pipelined-sendfile-response.sh
+++ b/t/t0024-pipelined-sendfile-response.sh
@@ -63,7 +63,7 @@ t_begin "staggered pipeline of 3 HTTP requests" && {
                 wait
                 echo ok >> $ok
         ) | socat - TCP:$listen > $dd_fifo
-        test 2 -eq $(grep '^ok$' $ok |wc -l)
+        test 2 -eq $(grep '^ok$' $ok |count_lines)
 }
 
 t_begin "pipeline 3 HTTP requests" && {
@@ -78,7 +78,7 @@ t_begin "pipeline 3 HTTP requests" && {
                 wait
                 echo ok >> $ok
         ) | socat - TCP:$listen > $fifo
-        test 2 -eq $(grep '^ok$' $ok |wc -l)
+        test 2 -eq $(grep '^ok$' $ok |count_lines)
 }
 
 t_begin "shutdown server" && {