Index: test/BaseJsTest.cpp |
=================================================================== |
--- a/test/BaseJsTest.cpp |
+++ b/test/BaseJsTest.cpp |
@@ -29,11 +29,12 @@ |
jsEngine->SetLogSystem(std::make_shared<ThrowingLogSystem>()); |
jsEngine->SetFileSystem(std::make_shared<ThrowingFileSystem>()); |
jsEngine->SetWebRequest(std::make_shared<ThrowingWebRequest>()); |
+ engine = ToInternal(jsEngine); |
} |
void BaseJsTest::TearDown() |
{ |
- ToInternal(jsEngine)->WaitForQuietScheduler(); |
+ engine->WaitForQuietScheduler(); |
EXPECT_EQ(1, jsEngine.use_count()); |
jsEngine.reset(); |
} |