diff options
Diffstat (limited to 'src/supplemental/http/http_server_test.c')
| -rw-r--r-- | src/supplemental/http/http_server_test.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/supplemental/http/http_server_test.c b/src/supplemental/http/http_server_test.c index f29fa52b..e1d13ad2 100644 --- a/src/supplemental/http/http_server_test.c +++ b/src/supplemental/http/http_server_test.c @@ -346,10 +346,9 @@ test_server_method_too_long(void) NUTS_PASS(nng_http_handler_alloc_static( &h, "/home.html", doc1, strlen(doc1), "text/html")); - NUTS_FAIL(nng_http_handler_set_method(h, - "THISMETHODISFARFARTOOLONGTOBEVALIDASAMETHODASITISLONGER" - "THANTHIRTYTWOBYTES"), - NNG_EINVAL); + nng_http_handler_set_method(h, + "THISMETHODISFARFARTOOLONGTOBEVALIDASAMETHODASITISLONGER" + "THANTHIRTYTWOBYTES"); } void @@ -393,7 +392,7 @@ test_server_post_handler(void) void *data; NUTS_PASS(nng_http_handler_alloc(&h, "/post", httpecho)); - NUTS_PASS(nng_http_handler_set_method(h, "POST")); + nng_http_handler_set_method(h, "POST"); server_setup(&st, h); |
