Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/TestDatabase.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/TestDatabase.cpp b/tests/TestDatabase.cpp
index c3a3a8c42..8ec4a1bd7 100644
--- a/tests/TestDatabase.cpp
+++ b/tests/TestDatabase.cpp
@@ -23,6 +23,7 @@
#include "config-keepassx-tests.h"
#include "core/Metadata.h"
+#include "core/Tools.h"
#include "crypto/Crypto.h"
#include "format/KeePass2Writer.h"
#include "keys/PasswordKey.h"
@@ -118,6 +119,9 @@ void TestDatabase::testSignals()
QVERIFY(db->save(&error));
QCOMPARE(spySaved.count(), 1);
+ // Short delay to allow file system settling to reduce test failures
+ Tools::wait(100);
+
QSignalSpy spyFileChanged(db.data(), SIGNAL(databaseFileChanged()));
QVERIFY(tempFile.copyFromFile(dbFileName));
QTRY_COMPARE(spyFileChanged.count(), 1);