Fix test.

This commit is contained in:
Martín Lucas Golini
2026-07-30 23:10:18 -03:00
parent 58cd2ec327
commit b60ee4e4b6

View File

@@ -1700,6 +1700,9 @@ UTEST( UIWebView, DeferredLocalCSSIgnoredAfterNavigation ) {
ASSERT_TRUE( probeNode != nullptr && probeNode->isWidget() );
EXPECT_NEAR( probeNode->asType<UIWidget>()->getPixelsSize().getWidth(), 120.f, 0.5f );
// Drop the external ownership before Engine teardown. The scenes keep the pool alive until
// their destruction, which joins its workers before the CSS specification is destroyed.
cssThreadPool.reset();
Engine::destroySingleton();
}