From 94307f744608ad6fd4f8d0ab57d23cf405917b15 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 20 May 2010 03:06:41 -0700 Subject: tests: t0005: minimize writes This test can cause a lot of I/O, especially when run in parallel. Just rely on the fixed rsha1 code to compute the SHA1 of the response. --- t/t0005-large-file-response.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 't') diff --git a/t/t0005-large-file-response.sh b/t/t0005-large-file-response.sh index 40bcdf8..d25134e 100755 --- a/t/t0005-large-file-response.sh +++ b/t/t0005-large-file-response.sh @@ -50,11 +50,11 @@ t_begin "HTTP/1.0 test" && { t_begin "HTTP/0.9 test" && { ( printf 'GET /random_blob\r\n' - cat $fifo > $tmp & + rsha1 < $fifo > $tmp & wait echo ok > $ok ) | socat - TCP:$listen > $fifo - cmp $tmp random_blob + test $(cat $tmp) = $(rsha1 < random_blob) test xok = x$(cat $ok) } -- cgit v1.2.3-24-ge0c7