Unverified Commit 70b1e068 authored by Dennis Jenkins's avatar Dennis Jenkins Committed by GitHub

Attempt to fix failing travis tests that run on IPV6 hosts. (#780)

Co-authored-by: default avatarDennis Jenkins <dennisjenkins@google.com>
parent 059171b1
......@@ -84,7 +84,14 @@ TEST(rest_server_test, basic_test) {
res = client.Get("/read/hostname");
ASSERT_EQ(res->status, 200);
ASSERT_EQ(res->body, "localhost");
// TODO: Clean this up to use proper gtest macros.
// NOTE: res->body is "ip6-localhost" on some architectures.
if (res->body == "ip6-localhost") {
ASSERT_EQ(res->body, "ip6-localhost"); // count the passing test.
} else {
ASSERT_EQ(res->body, "localhost");
}
stats.shutdown();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment