1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-14 18:35:16 +01:00

Fix a failing test

This commit is contained in:
David Sansome 2010-03-08 18:07:18 +00:00
parent 67214bf4dc
commit 9f0e399fba
2 changed files with 3 additions and 2 deletions

View File

@ -26,6 +26,8 @@ class LibraryBackend : public QObject {
};
typedef QList<Album> AlbumList;
static const int kSchemaVersion;
// This actually refers to the location of the sqlite database
static QString DefaultDatabaseDirectory();
@ -100,7 +102,6 @@ class LibraryBackend : public QObject {
private:
static const char* kDatabaseName;
static const int kSchemaVersion;
QString directory_;
QMutex connect_mutex_;

View File

@ -63,7 +63,7 @@ TEST_F(LibraryBackendTest, DatabaseInitialises) {
QSqlQuery q("SELECT version FROM schema_version", database_);
ASSERT_TRUE(q.exec());
ASSERT_TRUE(q.next());
EXPECT_EQ(2, q.value(0).toInt());
EXPECT_EQ(LibraryBackend::kSchemaVersion, q.value(0).toInt());
EXPECT_FALSE(q.next());
}