aboutsummaryrefslogtreecommitdiffstats
path: root/test/h2spec_SUITE.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2017-11-27 13:23:31 +0100
committerLoïc Hoguin <[email protected]>2017-11-27 13:23:31 +0100
commit843b104fcb75bcd217359a8b02d0b1f263d42602 (patch)
tree41e14dfc5f312441f50a07b76bf51b629850b1d6 /test/h2spec_SUITE.erl
parente71733232eddaeb41d4d3a8fbcba49ca7975da79 (diff)
downloadcowboy-843b104fcb75bcd217359a8b02d0b1f263d42602.tar.gz
cowboy-843b104fcb75bcd217359a8b02d0b1f263d42602.tar.bz2
cowboy-843b104fcb75bcd217359a8b02d0b1f263d42602.zip
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.
Diffstat (limited to 'test/h2spec_SUITE.erl')
-rw-r--r--test/h2spec_SUITE.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/h2spec_SUITE.erl b/test/h2spec_SUITE.erl
index 28e3fa8..fe93fdc 100644
--- a/test/h2spec_SUITE.erl
+++ b/test/h2spec_SUITE.erl
@@ -40,8 +40,8 @@ end_per_suite(_Config) ->
init_dispatch() ->
cowboy_router:compile([
- {"localhost", [
- {"/", hello_h, []}
+ {'_', [
+ {"/", delay_hello_h, 500}
]}
]).