mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-16 03:09:57 +01:00
Fix a failing test
This commit is contained in:
parent
67214bf4dc
commit
9f0e399fba
@ -26,6 +26,8 @@ class LibraryBackend : public QObject {
|
|||||||
};
|
};
|
||||||
typedef QList<Album> AlbumList;
|
typedef QList<Album> AlbumList;
|
||||||
|
|
||||||
|
static const int kSchemaVersion;
|
||||||
|
|
||||||
// This actually refers to the location of the sqlite database
|
// This actually refers to the location of the sqlite database
|
||||||
static QString DefaultDatabaseDirectory();
|
static QString DefaultDatabaseDirectory();
|
||||||
|
|
||||||
@ -100,7 +102,6 @@ class LibraryBackend : public QObject {
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
static const char* kDatabaseName;
|
static const char* kDatabaseName;
|
||||||
static const int kSchemaVersion;
|
|
||||||
|
|
||||||
QString directory_;
|
QString directory_;
|
||||||
QMutex connect_mutex_;
|
QMutex connect_mutex_;
|
||||||
|
@ -63,7 +63,7 @@ TEST_F(LibraryBackendTest, DatabaseInitialises) {
|
|||||||
QSqlQuery q("SELECT version FROM schema_version", database_);
|
QSqlQuery q("SELECT version FROM schema_version", database_);
|
||||||
ASSERT_TRUE(q.exec());
|
ASSERT_TRUE(q.exec());
|
||||||
ASSERT_TRUE(q.next());
|
ASSERT_TRUE(q.next());
|
||||||
EXPECT_EQ(2, q.value(0).toInt());
|
EXPECT_EQ(LibraryBackend::kSchemaVersion, q.value(0).toInt());
|
||||||
EXPECT_FALSE(q.next());
|
EXPECT_FALSE(q.next());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user