summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Shalamov <alexander.shalamov@mapbox.com>2020-04-15 15:19:02 +0300
committerAlexander Shalamov <alexander.shalamov@mapbox.com>2020-04-15 10:42:11 -0400
commit51000f6d6d727e49e5a33e8ae83a85004924f146 (patch)
tree0778451279899bc318928cae1931f530e11f88ef
parent42ceb70365cccb492911c64479c7447ba374b200 (diff)
downloadqtlocation-mapboxgl-51000f6d6d727e49e5a33e8ae83a85004924f146.tar.gz
Use single threaded fixture log
-rw-r--r--test/api/api_misuse.test.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/api/api_misuse.test.cpp b/test/api/api_misuse.test.cpp
index aeb0e4864a..549f26c8d4 100644
--- a/test/api/api_misuse.test.cpp
+++ b/test/api/api_misuse.test.cpp
@@ -15,8 +15,7 @@ using namespace mbgl;
TEST(API, RenderWithoutCallback) {
- auto log = new FixtureLogObserver();
- Log::setObserver(std::unique_ptr<Log::Observer>(log));
+ FixtureLog log;
util::RunLoop loop;
@@ -37,5 +36,5 @@ TEST(API, RenderWithoutCallback) {
"StillImageCallback not set",
};
- EXPECT_EQ(log->count(logMessage), 1u);
+ EXPECT_EQ(log.count(logMessage), 1u);
}