test: empty

master
Sean McBride 3 years ago
parent 81b78fe395
commit 3b05fb647c

@ -66,9 +66,8 @@ http_session_init_response_buffer(struct http_session *session, size_t capacity)
{
assert(session != NULL);
assert(session->response.buffer == NULL);
assert(capacity > 0);
int rc = vec_u8_init(&session->response, HTTP_SESSION_DEFAULT_REQUEST_RESPONSE_SIZE);
int rc = vec_u8_init(&session->response, capacity);
if (rc < 0) {
vec_u8_deinit(&session->request);
return -1;

@ -17,4 +17,4 @@ debug:
.PHONY: client
client:
curl -H 'Expect:' -H "Content-Type: text/plain" "${HOSTNAME}:10000"
curl -H 'Expect:' -H "Content-Type: text/plain" "${HOSTNAME}:10000/empty"

@ -1,13 +1,17 @@
[
{
"name": "empty",
"path": "empty.wasm.so",
"name": "gwu",
"port": 10000,
"expected-execution-us": 500,
"admissions-percentile": 70,
"relative-deadline-us": 50000,
"http-req-size": 1024,
"http-resp-size": 1024,
"http-resp-content-type": "text/plain"
"routes": [
{
"route": "/empty",
"path": "empty.wasm.so",
"expected-execution-us": 500,
"admissions-percentile": 70,
"relative-deadline-us": 50000,
"http-resp-size": 0,
"http-resp-content-type": "text/plain"
}
]
}
]

Loading…
Cancel
Save