From: Timo Sirainen Date: Thu, 30 Sep 2021 13:32:24 +0000 (+0200) Subject: lib-http: test-http-client-errors - Reset USR1 notification signal between tests X-Git-Tag: 2.3.17~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3cdb47ab0ca1dd56f62990f3003d9137771ad2be;p=thirdparty%2Fdovecot%2Fcore.git lib-http: test-http-client-errors - Reset USR1 notification signal between tests The "connection refused" test already set the signal as being received, which caused the "connection refused backoff" test to randomly fail since it thought the signal was immediately received. --- diff --git a/src/lib-http/test-http-client-errors.c b/src/lib-http/test-http-client-errors.c index 4436af371b..a5670bae43 100644 --- a/src/lib-http/test-http-client-errors.c +++ b/src/lib-http/test-http-client-errors.c @@ -457,6 +457,7 @@ static void test_connection_refused(void) test_client_defaults(&http_client_set); test_begin("connection refused"); + test_subprocess_notify_signal_reset(SIGUSR1); test_run_client_server(&http_client_set, test_client_connection_refused, test_server_connection_refused, 1, NULL); @@ -465,6 +466,7 @@ static void test_connection_refused(void) http_client_set.max_connect_attempts = 4; test_begin("connection refused backoff"); + test_subprocess_notify_signal_reset(SIGUSR1); test_run_client_server(&http_client_set, test_client_connection_refused, test_server_connection_refused, 1, NULL);