summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2020-05-11 13:36:50 +0300
committerThiago Marcos P. Santos <thiago@mapbox.com>2020-05-26 20:35:04 +0300
commit9d3554cac47cec09dbb327d2688678ccae9825d6 (patch)
tree52c7a216ba8a9ca35df0ceae7f986c343070b22b
parentef76f22c4f5f41a55a31f1fdf829755aabd1c6a3 (diff)
downloadqtlocation-mapboxgl-9d3554cac47cec09dbb327d2688678ccae9825d6.tar.gz
[tests] StyleParserTest.ParseStyle does not use log thread
-rw-r--r--test/style/style_parser.test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/style/style_parser.test.cpp b/test/style/style_parser.test.cpp
index 7607dbd077..c73815f8cf 100644
--- a/test/style/style_parser.test.cpp
+++ b/test/style/style_parser.test.cpp
@@ -24,13 +24,13 @@ class StyleParserTest : public ::testing::TestWithParam<std::string> {};
TEST_P(StyleParserTest, ParseStyle) {
const std::string base = std::string("test/fixtures/style_parser/") + GetParam();
-
rapidjson::GenericDocument<rapidjson::UTF8<>, rapidjson::CrtAllocator> infoDoc;
infoDoc.Parse<0>(util::read_file(base + ".info.json").c_str());
ASSERT_FALSE(infoDoc.HasParseError());
ASSERT_TRUE(infoDoc.IsObject());
auto observer = new FixtureLogObserver();
+ Log::useLogThread(false);
Log::setObserver(std::unique_ptr<Log::Observer>(observer));
style::Parser parser;