diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-11-05 18:36:43 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-11-06 13:05:51 +0100 |
commit | 2e38b5964c4048072daa805a75ad564df5d9f9c5 (patch) | |
tree | aed0ca90f4c322d886f291a8c2690acf535de1f7 /test/headless.cpp | |
parent | 3038cdbbf3bddc49f6a58dda710a8e080dcb9ec5 (diff) | |
download | qtlocation-mapboxgl-2e38b5964c4048072daa805a75ad564df5d9f9c5.tar.gz |
use IPv4 address instead of localhost to work around systems that don't resolve localhost to 127.0.0.1
Diffstat (limited to 'test/headless.cpp')
-rw-r--r-- | test/headless.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/headless.cpp b/test/headless.cpp index d5a13031db..ef3e785ccb 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()); } |