From ac602dd58ca73c4dd91b807824052eefee8d870a Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Thu, 4 Aug 2022 16:06:06 -0400 Subject: [PATCH] test: improve error message in localhost test --- Tests/Unit/TestNGInternetSocketAddress.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/Unit/TestNGInternetSocketAddress.m b/Tests/Unit/TestNGInternetSocketAddress.m index d0d787be3..4f4a7bb02 100644 --- a/Tests/Unit/TestNGInternetSocketAddress.m +++ b/Tests/Unit/TestNGInternetSocketAddress.m @@ -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++;