about summary refs log tree commit homepage
path: root/t/t0034-pipelined-pipe-response.sh
diff options
context:
space:
mode:
Diffstat (limited to 't/t0034-pipelined-pipe-response.sh')
-rwxr-xr-xt/t0034-pipelined-pipe-response.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t0034-pipelined-pipe-response.sh b/t/t0034-pipelined-pipe-response.sh
index 2d28f86..59df69f 100755
--- a/t/t0034-pipelined-pipe-response.sh
+++ b/t/t0034-pipelined-pipe-response.sh
@@ -62,7 +62,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" && {
@@ -77,7 +77,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" && {