From 65ba5a58c0f0a91a56d111a83a54254fa46927ed Mon Sep 17 00:00:00 2001 From: Felix Ernst Date: Tue, 30 Jan 2024 17:12:11 +0100 Subject: Speed up autoSaveSession test Normally, the session is only saved after a few seconds. The autotest waits for that to happen. This commit reduces the time until the session is saved to a fraction of a seconds which means that the autotest will complete faster. --- src/tests/dolphinmainwindowtest.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/tests/dolphinmainwindowtest.cpp') diff --git a/src/tests/dolphinmainwindowtest.cpp b/src/tests/dolphinmainwindowtest.cpp index 60d46518a..f10691013 100644 --- a/src/tests/dolphinmainwindowtest.cpp +++ b/src/tests/dolphinmainwindowtest.cpp @@ -586,6 +586,7 @@ void DolphinMainWindowTest::testAutoSaveSession() // Enable session autosave. m_mainWindow->setSessionAutoSaveEnabled(true); + m_mainWindow->m_sessionSaveTimer->setInterval(200); // Lower the interval to speed up the testing // Open a new tab auto tabWidget = m_mainWindow->findChild("tabWidget"); -- cgit v1.3