From 2e38b5964c4048072daa805a75ad564df5d9f9c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Ka=CC=88fer?= Date: Wed, 5 Nov 2014 18:36:43 +0100 Subject: [PATCH] use IPv4 address instead of localhost to work around systems that don't resolve localhost to 127.0.0.1 --- test/headless.cpp | 4 ++-- test/suite | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/headless.cpp b/test/headless.cpp index d5a13031d..ef3e785cc 100644 --- a/test/headless.cpp +++ b/test/headless.cpp @@ -86,7 +86,7 @@ void rewriteLocalScheme(rapidjson::Value &value, rapidjson::Document::AllocatorT ASSERT_TRUE(value.IsString()); auto string = std::string { value.GetString(),value.GetStringLength() }; if (string.compare(0, 8, "local://") == 0) { - string.replace(0, 8, "http://localhost:2900/"); + string.replace(0, 8, "http://127.0.0.1:2900/"); value.SetString(string.data(), string.size(), allocator); } } @@ -107,7 +107,7 @@ TEST_P(HeadlessTest, render) { ASSERT_FALSE(styleDoc.HasParseError()); ASSERT_TRUE(styleDoc.IsObject()); - // Rewrite "local://" to "http://localhost:2900/". + // Rewrite "local://" to "http://127.0.0.1:2900/". if (styleDoc.HasMember("sprite")) { rewriteLocalScheme(styleDoc["sprite"], styleDoc.GetAllocator()); } diff --git a/test/suite b/test/suite index 5cc4f9cdb..2892e261e 160000 --- a/test/suite +++ b/test/suite @@ -1 +1 @@ -Subproject commit 5cc4f9cdbeada9511f81c88e87423e9fe365451d +Subproject commit 2892e261eb6dd8ce42f304e009ef7b2ff5e1a9c8