diff options
Diffstat (limited to 'test/api/set_style.cpp')
-rw-r--r-- | test/api/set_style.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/test/api/set_style.cpp b/test/api/set_style.cpp index c918e665e6..01ce1f0252 100644 --- a/test/api/set_style.cpp +++ b/test/api/set_style.cpp @@ -16,13 +16,10 @@ TEST(API, SetStyle) { Log::setObserver(util::make_unique<FixtureLogObserver>()); - Map map(view, fileSource); - - map.start(MapMode::Still); - - map.setStyleJSON("invalid", "test/suite"); - - map.stop(); + { + Map map(view, fileSource, MapMode::Still); + map.setStyleJSON("invalid", "test/suite"); + } auto observer = Log::removeObserver(); auto flo = dynamic_cast<FixtureLogObserver*>(observer.get()); |