test: improve error message in localhost test

This commit is contained in:
Francis Lachapelle
2022-08-04 16:06:06 -04:00
parent 931fc8d6ef
commit ac602dd58c

View File

@@ -45,7 +45,7 @@
is_localhost = [addr isLocalhost];
error = [NSString stringWithFormat:
@"expected '%@' to be a localhost address", *curHost];
@"expected '%@' to be a localhost address. Is libnss-myhostname installed and activated in /etc/nsswitch.conf?", *curHost];
testWithMessage(is_localhost, error);
curHost++;