mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-15 22:09:31 -04:00
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:
parent
4860b66fba
commit
a07e798df6
1 changed files with 7 additions and 7 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue