mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 13:05:51 +03:00
Fix tests for syncjournaldb
This commit is contained in:
parent
0884ad6517
commit
78caa1a712
1 changed files with 4 additions and 6 deletions
|
@ -13,19 +13,15 @@
|
|||
|
||||
using namespace OCC;
|
||||
|
||||
namespace {
|
||||
|
||||
const char testdbC[] = "/tmp";
|
||||
}
|
||||
|
||||
class TestSyncJournalDB : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TestSyncJournalDB()
|
||||
: _db(testdbC)
|
||||
{
|
||||
const QString testdb("/tmp/csync-test.db");
|
||||
_db.setDatabaseFilePath( testdb );
|
||||
}
|
||||
|
||||
QDateTime dropMsecs(QDateTime time)
|
||||
|
@ -41,6 +37,8 @@ private slots:
|
|||
|
||||
void cleanupTestCase()
|
||||
{
|
||||
const QString file = _db.databaseFilePath();
|
||||
QFile::remove(file);
|
||||
}
|
||||
|
||||
void testFileRecord()
|
||||
|
|
Loading…
Reference in a new issue