invalid-address: ensure bad path is invalid
Running the CI test suite on my mac within the docker container created
by the CI scripts results in this test passing. i.e. getaddrinfo returns
a 0 indicating "not_an_IP" is valid. It seems to indicate it's a valid
IPV6 address. Change the bad address to be badder.
Tested:
Test suite now passes on my mac
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: I37e425bceacd3ea95df39a7d33cf63abacc85df7
diff --git a/test/remote_logging_test_address.cpp b/test/remote_logging_test_address.cpp
index 5c8794e..16d560c 100644
--- a/test/remote_logging_test_address.cpp
+++ b/test/remote_logging_test_address.cpp
@@ -18,7 +18,7 @@
TEST_F(TestRemoteLogging, testBadAddress)
{
- EXPECT_THROW(config->address("not_an_IP"), InvalidArgument);
+ EXPECT_THROW(config->address("this is not_an_IP!"), InvalidArgument);
}
} // namespace test