[master] 586dda0 Use -need-bytes instead of delays

Poul-Henning Kamp phk at FreeBSD.org
Sat Jan 13 00:33:09 UTC 2018


commit 586dda0535ac393f6c02f0b0f7bde9a4ac2e9951
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Sat Jan 13 00:25:49 2018 +0000

    Use -need-bytes instead of delays

diff --git a/bin/varnishtest/tests/u00000.vtc b/bin/varnishtest/tests/u00000.vtc
index 0b33c36..99bf22a 100644
--- a/bin/varnishtest/tests/u00000.vtc
+++ b/bin/varnishtest/tests/u00000.vtc
@@ -2,7 +2,7 @@ varnishtest "Simple process tests"
 
 process p1 "cat" -start
 process p1 -writeln "foo"
-delay 0.5
+process p1 -need-bytes 3
 process p1 -stop
 process p1 -wait
 shell "grep -q foo ${p1_out}"
@@ -10,7 +10,7 @@ shell "test -f ${p1_err} -a ! -s ${p1_err}"
 
 process p2 -log "cat" -start
 process p2 -writeln "bar"
-delay 0.5
+process p2 -need-bytes 3
 process p2 -write "\x04"
 process p2 -wait
 shell "grep -q bar ${p2_out}"
@@ -18,7 +18,7 @@ shell "test -f ${p2_err} -a ! -s ${p2_err}"
 
 process p3 -dump "cat" -start
 process p3 -writeln "baz"
-delay 0.5
+process p3 -need-bytes 3
 process p3 -kill KILL
 process p3 -wait
 shell "grep -q baz ${p3_out}"
@@ -26,7 +26,7 @@ shell "test -f ${p3_err} -a ! -s ${p3_err}"
 
 process p4 -hexdump "cat" -start
 process p4 -writeln "b\001z"
-delay 0.5
+process p4 -need-bytes 3
 process p4 -kill TERM
 process p4 -wait -screen_dump
 


More information about the varnish-commit mailing list