1
0
mirror of https://invent.kde.org/system/dolphin synced 2024-07-02 16:31:23 +00:00

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.
This commit is contained in:
Felix Ernst 2024-01-30 17:12:11 +01:00 committed by Felix Ernst
parent a804c7bfc4
commit 65ba5a58c0

View 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");