File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 510
510
echo-handler (fn [{:keys [body]}] {:body (bs/to-string body)})
511
511
slow-handler (fn [_] {:body (slow-stream )})]
512
512
(testing " Server is slow to write"
513
- (with-handler-options slow-handler {:idle-timeout 150
513
+ (with-handler-options slow-handler {:idle-timeout 200
514
514
:port port}
515
515
(is (= " 012345" (bs/to-string (:body @(http/get url)))))))
516
516
(testing " Server is too slow to write"
519
519
(is (= " "
520
520
(bs/to-string (:body @(http/get url)))))))
521
521
(testing " Client is slow to write"
522
- (with-handler-options echo-handler {:idle-timeout 150
522
+ (with-handler-options echo-handler {:idle-timeout 200
523
523
:port port
524
524
:raw-stream? true }
525
525
(is (= " 012345" (bs/to-string (:body @(http/put url {:body (slow-stream )})))))))
You can’t perform that action at this time.
0 commit comments