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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user