aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorJosef Pospíšil <josef.pospisil@laststar.eu>2021-10-04 14:13:44 +0200
committerJosef Pospíšil <josef.pospisil@laststar.eu>2021-10-04 14:13:44 +0200
commitc045eadb840d719912632c482ced994adb2f6c8f (patch)
treec47a658fb786b2b0c0b024326a64fa75c197f6d5 /test
parentFix reading request from connection in http (diff)
Add large body test
Diffstat (limited to 'test')
-rw-r--r--test/suite0012.janet6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/suite0012.janet b/test/suite0012.janet
index a41f235..69996f5 100644
--- a/test/suite0012.janet
+++ b/test/suite0012.janet
@@ -54,4 +54,10 @@
(test-http-item (http/request "POST" "http://127.0.0.1:9816"
:body "Strong and healthy")
nil nil 200 {"content-length" "18"}))
+
+(with [server (http/server body-server "127.0.0.1" 9816)]
+ (test-http-item (http/request "POST" "http://127.0.0.1:9816"
+ :body (string/repeat "a" 2097152))
+ nil nil 200 {"content-length" "2097152"}))
+
(end-suite)