dnsapi/tests: Don't fail on query timeouts.

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hans Leidekker 2021-03-31 14:06:20 +02:00 committed by Alexandre Julliard
parent a412a4b961
commit c511511e62
1 changed files with 6 additions and 1 deletions

View File

@ -40,7 +40,12 @@ static void test_DnsQuery(void)
rec = NULL;
status = DnsQuery_W(L"winehq.org", DNS_TYPE_A, DNS_QUERY_STANDARD, NULL, &rec, NULL);
ok(status == ERROR_SUCCESS, "DnsQuery_W(%s) => %d\n", wine_dbgstr_w(name), status);
if (status == ERROR_TIMEOUT)
{
skip("query timed out\n");
return;
}
ok(status == ERROR_SUCCESS, "got %d\n", status);
DnsRecordListFree(rec, DnsFreeRecordList);
status = DnsQuery_W(L"", DNS_TYPE_SRV, DNS_QUERY_STANDARD, NULL, &rec, NULL);