awful-sse/tests/run.scm
2014-07-09 15:37:21 -03:00

19 lines
420 B
Scheme

(use awful http-client intarweb uri-common server-test test)
(awful-apps (list "client.scm"))
(with-test-server
(lambda ()
(awful-start
(lambda ()
(load-apps (awful-apps)))))
(lambda ()
(test "data: sse\n\n"
(with-input-from-request
(make-request
uri: (uri-reference "http://localhost:8080/sse")
headers: (headers '((accept text/event-stream))))
#f
read-string))))
(test-exit)