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 != NULL);
assert(session->response.buffer == 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) { if (rc < 0) {
vec_u8_deinit(&session->request); vec_u8_deinit(&session->request);
return -1; return -1;

@ -17,4 +17,4 @@ debug:
.PHONY: client .PHONY: client
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", "name": "gwu",
"path": "empty.wasm.so",
"port": 10000, "port": 10000,
"routes": [
{
"route": "/empty",
"path": "empty.wasm.so",
"expected-execution-us": 500, "expected-execution-us": 500,
"admissions-percentile": 70, "admissions-percentile": 70,
"relative-deadline-us": 50000, "relative-deadline-us": 50000,
"http-req-size": 1024, "http-resp-size": 0,
"http-resp-size": 1024,
"http-resp-content-type": "text/plain" "http-resp-content-type": "text/plain"
} }
] ]
}
]

Loading…
Cancel
Save