]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Speed up autoSaveSession test
authorFelix Ernst <felixernst@zohomail.eu>
Tue, 30 Jan 2024 16:12:11 +0000 (17:12 +0100)
committerFelix Ernst <felixernst@kde.org>
Thu, 1 Feb 2024 10:43:53 +0000 (10:43 +0000)
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

index 60d46518a0262c43dabffc2d18a64e33288aa4cf..f10691013436c5f5cfa5c23467ecb66089ceb17c 100644 (file)
@@ -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<DolphinTabWidget *>("tabWidget");