From: George Thessalonikefs Date: Fri, 7 Oct 2022 09:29:46 +0000 (+0200) Subject: - Fix unit test to properly test the reuse_write_wait_pop function. X-Git-Tag: release-1.17.0rc1^0 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=a4631a3ecff7d6a44269190a667c9a623e3b4685;p=thirdparty%2Funbound.git - Fix unit test to properly test the reuse_write_wait_pop function. --- diff --git a/doc/Changelog b/doc/Changelog index c956c58bc..790d7793f 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -2,6 +2,7 @@ - Fix to stop possible loops in the tcp reuse code (write_wait list and tcp_wait list). Based on analysis and patch from Prad Seniappan and Karthik Umashankar. + - Fix unit test to properly test the reuse_write_wait_pop function. 6 October 2022: Wouter - Fix to stop responses with TC flag from resulting in partial diff --git a/testcode/unittcpreuse.c b/testcode/unittcpreuse.c index b32262dac..5f45a4b45 100644 --- a/testcode/unittcpreuse.c +++ b/testcode/unittcpreuse.c @@ -474,9 +474,9 @@ static void reuse_write_wait_test(void) /* Check pop */ unit_show_func("services/outside_network.c", "reuse_write_wait_pop"); - check_reuse_write_wait_removal(0, &reuse, store, 0, 3); - check_reuse_write_wait_removal(0, &reuse, store, 0, 2); - check_reuse_write_wait_removal(0, &reuse, store, 0, 1); + check_reuse_write_wait_removal(1, &reuse, store, 0, 3); + check_reuse_write_wait_removal(1, &reuse, store, 0, 2); + check_reuse_write_wait_removal(1, &reuse, store, 0, 1); } void tcpreuse_test(void)