From 51000f6d6d727e49e5a33e8ae83a85004924f146 Mon Sep 17 00:00:00 2001 From: Alexander Shalamov Date: Wed, 15 Apr 2020 15:19:02 +0300 Subject: Use single threaded fixture log --- test/api/api_misuse.test.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'test') 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)); + 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); } -- cgit v1.2.1