diff options
author | 2017-09-18 15:36:47 +0000 | |
---|---|---|
committer | 2017-09-18 15:36:47 +0000 | |
commit | 17eafa1074d694e5e8aa801d650074201340a8ce (patch) | |
tree | 8dddaaae8de0ec480713d9f510df319c57047865 | |
parent | document @version (diff) | |
download | wireguard-openbsd-17eafa1074d694e5e8aa801d650074201340a8ce.tar.xz wireguard-openbsd-17eafa1074d694e5e8aa801d650074201340a8ce.zip |
Avoid race in relayd test that uses an invalid chunked header. Wait
until server has started, then expect error message in server log.
-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, |