]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: test-http-client-errors: Always use the proper error status code definition...
authorStephan Bosch <stephan.bosch@dovecot.fi>
Fri, 17 Mar 2017 22:03:03 +0000 (23:03 +0100)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 27 Mar 2017 09:41:44 +0000 (12:41 +0300)
src/lib-http/test-http-client-errors.c

index fcc529d70e76aa768229b13d450f4d2c9fdf25fc..016a56a9147e6e813418c2d382c922a74a686d32 100644 (file)
@@ -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);