0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

Don't send the response immediately when using h2spec

In some cases we were sending a response faster than h2spec
was sending us the test case data, resulting in the request
being processed successfully instead of failing as expected.
This commit is contained in:
Loïc Hoguin 2017-11-27 13:23:31 +01:00
parent e71733232e
commit 843b104fcb
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764
2 changed files with 11 additions and 2 deletions

View file

@ -40,8 +40,8 @@ end_per_suite(_Config) ->
init_dispatch() ->
cowboy_router:compile([
{"localhost", [
{"/", hello_h, []}
{'_', [
{"/", delay_hello_h, 500}
]}
]).