Index: test/BaseJsTest.cpp |
=================================================================== |
--- a/test/BaseJsTest.cpp |
+++ b/test/BaseJsTest.cpp |
@@ -20,8 +20,7 @@ |
AdblockPlus::JsEnginePtr CreateJsEngine(const AdblockPlus::AppInfo& appInfo) |
{ |
- static AdblockPlus::ScopedV8IsolatePtr isolate = std::make_shared<AdblockPlus::ScopedV8Isolate>(); |
- return AdblockPlus::JsEngine::New(appInfo, isolate); |
+ return AdblockPlus::JsEngine::New(appInfo); |
} |
void BaseJsTest::SetUp() |
@@ -35,4 +34,6 @@ |
void BaseJsTest::TearDown() |
{ |
ToInternal(jsEngine)->WaitForQuietScheduler(); |
+ jsEngine.reset(); |
+ EXPECT_EQ(0, jsEngine.use_count()); |
} |