Skip to content

Commit

Permalink
Tests: TaskDNS: Fix failures when the hostname is not 'localhost'.
Browse files Browse the repository at this point in the history
  • Loading branch information
heiher committed Feb 13, 2025
1 parent fffdddc commit 81626b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/task-dns.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ getnameinfo_entry (void *data)
addr = (struct sockaddr *)&addr4;
assert (hev_task_dns_getnameinfo (addr, sizeof (addr4), node, NI_MAXHOST,
service, NI_MAXSERV, 0) == 0);
assert (strcmp (node, "localhost") == 0);
assert (strlen (node) > 0);
assert (strcmp (service, "http") == 0);

addr6.sin6_family = AF_INET6;
Expand All @@ -57,7 +57,7 @@ getnameinfo_entry (void *data)
addr = (struct sockaddr *)&addr6;
assert (hev_task_dns_getnameinfo (addr, sizeof (addr6), node, NI_MAXHOST,
service, NI_MAXSERV, 0) == 0);
assert (strcmp (node, "localhost") == 0);
assert (strlen (node) > 0);
assert (strcmp (service, "http") == 0);
}

Expand Down

0 comments on commit 81626b1

Please sign in to comment.