From 642dd751cfb93e8fe8b6d9a2071058a158e882b2 Mon Sep 17 00:00:00 2001 From: Aliaksandr Kalenik Date: Tue, 10 Jun 2025 21:33:34 +0200 Subject: [PATCH] test-web: Disable SQL database usage We have a test for localStorage that repeatedly adds new items until the quota is exceeded: `webstorage/storage_local_setitem_quotaexceedederr.window.html`. This test becomes significantly slower when localStorage is backed by SQL database. Let's disable database usage in test mode for now, as this test is likely to be flaky on CI due to timeouts. --- Tests/LibWeb/test-web/Application.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tests/LibWeb/test-web/Application.cpp b/Tests/LibWeb/test-web/Application.cpp index 36842b9bc77..d0eb65218a2 100644 --- a/Tests/LibWeb/test-web/Application.cpp +++ b/Tests/LibWeb/test-web/Application.cpp @@ -59,6 +59,8 @@ void Application::create_platform_arguments(Core::ArgsParser& args_parser) void Application::create_platform_options(WebView::BrowserOptions& browser_options, WebView::WebContentOptions& web_content_options) { browser_options.headless_mode = WebView::HeadlessMode::Test; + browser_options.disable_sql_database = WebView::DisableSQLDatabase::Yes; + web_content_options.is_layout_test_mode = WebView::IsLayoutTestMode::Yes; // Allow window.open() to succeed for tests.