From: Stephan Bosch Date: Fri, 17 Mar 2017 22:03:03 +0000 (+0100) Subject: lib-http: test-http-client-errors: Always use the proper error status code definition... X-Git-Tag: 2.2.29.rc1~123 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=07b307039b497a8acea6082a577544176b02b86e;p=thirdparty%2Fdovecot%2Fcore.git lib-http: test-http-client-errors: Always use the proper error status code definitions rather than an integer literal. --- diff --git a/src/lib-http/test-http-client-errors.c b/src/lib-http/test-http-client-errors.c index fcc529d70e..016a56a914 100644 --- a/src/lib-http/test-http-client-errors.c +++ b/src/lib-http/test-http-client-errors.c @@ -2525,7 +2525,7 @@ test_client_reconnect_failure_response2( if (debug) i_debug("RESPONSE: %u %s", resp->status, resp->reason); - test_assert(resp->status == 9002); + test_assert(resp->status == HTTP_CLIENT_REQUEST_ERROR_CONNECT_FAILED); test_assert(resp->reason != NULL && *resp->reason != '\0'); io_loop_stop(ioloop);