aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_mainwindow.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/test_mainwindow.cpp b/tests/test_mainwindow.cpp
index f6f75aa..f008b10 100644
--- a/tests/test_mainwindow.cpp
+++ b/tests/test_mainwindow.cpp
@@ -7455,11 +7455,15 @@ void TestMainWindow::aSuccessfulCronSyncDrainsTheEditedAccounts()
const QString confPath = dir.filePath(QStringLiteral("qtmaildir.conf"));
QFile conf(confPath);
QVERIFY(conf.open(QIODevice::WriteOnly | QIODevice::Text));
- conf.write(QStringLiteral("[sync]\nlog=%1\n\n"
+ // status= keeps Config off the real syncstatus.json, the leak
+ // noSyncTestReadsTheRealSyncState() records; this test missed it and
+ // failed whenever the developer's last cron run left a channel queued.
+ conf.write(QStringLiteral("[sync]\nlog=%1\nstatus=%2\n\n"
"[account.work]\n"
"maildir=work-mail\n"
"channel=work-channel\n")
- .arg(logPath).toUtf8());
+ .arg(logPath, dir.filePath(QStringLiteral("no-status.json")))
+ .toUtf8());
conf.close();
Config config;