From b60ee4e4b6c5d1e973b4e60dc2af74773e5b3b6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Lucas=20Golini?= Date: Thu, 30 Jul 2026 23:10:18 -0300 Subject: [PATCH] Fix test. --- src/tests/unit_tests/uiwebview_tests.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tests/unit_tests/uiwebview_tests.cpp b/src/tests/unit_tests/uiwebview_tests.cpp index 1f972fa8d..eee5517e2 100644 --- a/src/tests/unit_tests/uiwebview_tests.cpp +++ b/src/tests/unit_tests/uiwebview_tests.cpp @@ -1700,6 +1700,9 @@ UTEST( UIWebView, DeferredLocalCSSIgnoredAfterNavigation ) { ASSERT_TRUE( probeNode != nullptr && probeNode->isWidget() ); EXPECT_NEAR( probeNode->asType()->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(); }