diff options
Diffstat (limited to 'tests/test_dns.c')
-rw-r--r-- | tests/test_dns.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/tests/test_dns.c b/tests/test_dns.c index 4e2c4a464..9bbb7daaf 100644 --- a/tests/test_dns.c +++ b/tests/test_dns.c @@ -365,9 +365,7 @@ AST_TEST_DEFINE(resolver_set_result_off_nominal) info->description = "This test performs the following:\n" "\t* Attempt to add a DNS result that is both bogus and secure\n" - "\t* Attempt to add a DNS result that has no canonical name\n" - "\t* Attempt to add a DNS result that has no answer\n" - "\t* Attempt to add a DNS result with a zero answer size"; + "\t* Attempt to add a DNS result that has no canonical name"; return AST_TEST_NOT_RUN; case TEST_EXECUTE: break; @@ -391,22 +389,6 @@ AST_TEST_DEFINE(resolver_set_result_off_nominal) return AST_TEST_FAIL; } - if (!ast_dns_resolver_set_result(&some_query, 0, 0, ns_r_noerror, NULL, - NULL, DNS_ANSWER_SIZE)) { - ast_test_status_update(test, "Successfully added result with no answer\n"); - result = ast_dns_query_get_result(&some_query); - ast_dns_result_free(result); - return AST_TEST_FAIL; - } - - if (!ast_dns_resolver_set_result(&some_query, 0, 0, ns_r_noerror, NULL, - DNS_ANSWER, 0)) { - ast_test_status_update(test, "Successfully added result with answer size of zero\n"); - result = ast_dns_query_get_result(&some_query); - ast_dns_result_free(result); - return AST_TEST_FAIL; - } - return AST_TEST_PASS; } |