diff --git a/src/test/check_getdns_common.c b/src/test/check_getdns_common.c index 43fce6f0..79f177a9 100644 --- a/src/test/check_getdns_common.c +++ b/src/test/check_getdns_common.c @@ -311,7 +311,7 @@ void assert_ptr_in_answer(struct extracted_response *ex_response) ptr_records++; } - ck_assert_msg(ptr_records == 1, "Expected to find one PTR record in answer section, got %d", ptr_records); + ck_assert_msg(ptr_records > 0, "Answer did not contain any PTR records"); } void destroy_callbackfn(struct getdns_context *context, diff --git a/src/test/check_getdns_hostname.h b/src/test/check_getdns_hostname.h index 1645d89e..db43b56f 100644 --- a/src/test/check_getdns_hostname.h +++ b/src/test/check_getdns_hostname.h @@ -401,7 +401,7 @@ struct getdns_context *context = NULL; struct getdns_dict *address = NULL; struct getdns_bindata address_type = { 5, (void *)"IPv6" }; - struct getdns_bindata address_data = { 16, (void *)"\x26\x07\xf8\xb0\x40\x06\x08\x02\x00\x00\x00\x00\x00\x00\x10\x04" }; + struct getdns_bindata address_data = { 16, (void *)"\x2a\x04\xb9\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x37" }; void* eventloop = NULL; getdns_transaction_t transaction_id = 0; diff --git a/src/test/check_getdns_hostname_sync.h b/src/test/check_getdns_hostname_sync.h index ca40dc93..82b1ec44 100644 --- a/src/test/check_getdns_hostname_sync.h +++ b/src/test/check_getdns_hostname_sync.h @@ -338,7 +338,7 @@ struct getdns_context *context = NULL; struct getdns_dict *address = NULL; struct getdns_bindata address_type = { 5, (void *)"IPv6" }; - struct getdns_bindata address_data = { 16, (void *)"\x26\x07\xf8\xb0\x40\x06\x08\x02\x00\x00\x00\x00\x00\x00\x10\x04" }; + struct getdns_bindata address_data = { 16, (void *)"\x2a\x04\xb9\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x37" }; struct getdns_dict *response = NULL; CONTEXT_CREATE(TRUE);