Commit ba70c971b3c32f08f734cbb561c3fde3af32a9b5

Baptiste 2024-08-08T15:59:57

http: fix tests: wip

diff --git a/test/http/04_server_request.kc3 b/test/http/04_server_request.kc3
index e68172f..4475cc6 100644
--- a/test/http/04_server_request.kc3
+++ b/test/http/04_server_request.kc3
@@ -10,8 +10,8 @@ quote req = HTTP.Request.buf_parse(server_client.buf_rw.r)
 req = HTTP.Request.buf_parse(server_client.buf_rw.r)
 quote response = %HTTP.Response{body: "Hello, KC3 HTTP test server !"}
 response = %HTTP.Response{body: "Hello, KC3 HTTP test server !"}
-quote HTTP.Response.buf_write(response, client.buf_rw.w)
-HTTP.Response.buf_write(response, client.buf_rw.w)
+quote HTTP.Response.buf_write(response, client.buf_rw.w, true)
+HTTP.Response.buf_write(response, client.buf_rw.w, true)
 #quote Socket.Buf.close(client)
 #Socket.Buf.close(client)
 #quote Socket.Buf.close(server_client)
diff --git a/test/http/07_event_echo.out.expected b/test/http/07_event_echo.out.expected
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/test/http/07_event_echo.out.expected
diff --git a/test/http/07_event_echo.ret.expected b/test/http/07_event_echo.ret.expected
new file mode 100644
index 0000000..573541a
--- /dev/null
+++ b/test/http/07_event_echo.ret.expected
@@ -0,0 +1 @@
+0