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:
parent
e71733232e
commit
843b104fcb
2 changed files with 11 additions and 2 deletions
|
@ -40,8 +40,8 @@ end_per_suite(_Config) ->
|
|||
|
||||
init_dispatch() ->
|
||||
cowboy_router:compile([
|
||||
{"localhost", [
|
||||
{"/", hello_h, []}
|
||||
{'_', [
|
||||
{"/", delay_hello_h, 500}
|
||||
]}
|
||||
]).
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue