From a07e798df6b79302f5556239fe8baecf5aef7a72 Mon Sep 17 00:00:00 2001 From: Artem Boldariev Date: Fri, 7 Oct 2022 22:23:06 +0300 Subject: [PATCH] Make dispatch unit tests use Stream DNS This commit replaces usage of TCP DNS and TLS DNS in the dispatch unit tests with Stream DNS transport. --- tests/dns/dispatch_test.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/dns/dispatch_test.c b/tests/dns/dispatch_test.c index 4e3ef2fd63..649166bf25 100644 --- a/tests/dns/dispatch_test.c +++ b/tests/dns/dispatch_test.c @@ -485,9 +485,9 @@ ISC_LOOP_TEST_IMPL(dispatch_timeout_tcp_response) { uint16_t id; /* Server */ - result = isc_nm_listentcpdns(netmgr, ISC_NM_LISTEN_ONE, - &tcp_server_addr, noop_nameserver, NULL, - accept_cb, NULL, 0, NULL, &sock); + result = isc_nm_listenstreamdns(netmgr, ISC_NM_LISTEN_ONE, + &tcp_server_addr, noop_nameserver, NULL, + accept_cb, NULL, 0, NULL, NULL, &sock); assert_int_equal(result, ISC_R_SUCCESS); /* ensure we stop listening after the test is done */ @@ -517,9 +517,9 @@ ISC_LOOP_TEST_IMPL(dispatch_tcp_response) { uint16_t id; /* Server */ - result = isc_nm_listentcpdns(netmgr, ISC_NM_LISTEN_ONE, - &tcp_server_addr, nameserver, NULL, - accept_cb, NULL, 0, NULL, &sock); + result = isc_nm_listenstreamdns(netmgr, ISC_NM_LISTEN_ONE, + &tcp_server_addr, nameserver, NULL, + accept_cb, NULL, 0, NULL, NULL, &sock); assert_int_equal(result, ISC_R_SUCCESS); isc_loop_teardown(isc_loop_main(loopmgr), stop_listening, sock); @@ -554,7 +554,7 @@ ISC_LOOP_TEST_IMPL(dispatch_tls_response) { uint16_t id; /* Server */ - result = isc_nm_listentlsdns( + result = isc_nm_listenstreamdns( netmgr, ISC_NM_LISTEN_ONE, &tls_server_addr, nameserver, NULL, accept_cb, NULL, 0, NULL, tls_listen_tlsctx, &sock); assert_int_equal(result, ISC_R_SUCCESS);