From: Felix Ernst Date: Tue, 30 Jan 2024 16:12:11 +0000 (+0100) Subject: Speed up autoSaveSession test X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/65ba5a58c0f0a91a56d111a83a54254fa46927ed 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. --- 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");