diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2017-09-18 15:36:48 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2017-09-18 15:36:48 +0000 |
commit | d3dee9ee5b56aa5056fc99039bd2b887da83e643 (patch) | |
tree | 2c3213e822483756650a415528b625b917939c37 /regress | |
parent | 24a01aae08e4b5f94e94441c68de759c45329fe7 (diff) |
Avoid race in relayd test that uses an invalid chunked header. Wait
until server has started, then expect error message in server log.
Diffstat (limited to 'regress')
-rw-r--r-- | regress/usr.sbin/relayd/args-http-chunked-callback.pl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/regress/usr.sbin/relayd/args-http-chunked-callback.pl b/regress/usr.sbin/relayd/args-http-chunked-callback.pl index 68af1c835f3..3cb248a73bf 100644 --- a/regress/usr.sbin/relayd/args-http-chunked-callback.pl +++ b/regress/usr.sbin/relayd/args-http-chunked-callback.pl @@ -15,6 +15,9 @@ PUT /4/3 HTTP/1.1 Host: foo.bar Transfer-Encoding: chunked +EOF + ${$self->{server}}->up; + print <<'EOF'; 4 123 @@ -45,7 +48,8 @@ EOF }, }, server => { - func => \&http_server, + down => "Server missing chunk size", + func => sub { errignore(@_); http_server(@_); }, nocheck => 1, }, lengths => \@lengths, |