diff --git a/tests/librarybackend_test.cpp b/tests/librarybackend_test.cpp index 4ba9b433d..f8d987d3b 100644 --- a/tests/librarybackend_test.cpp +++ b/tests/librarybackend_test.cpp @@ -44,9 +44,9 @@ class LibraryBackendTest : public ::testing::Test { Song ret; ret.set_directory_id(directory_id); ret.set_filename("foo.mp3"); - ret.set_mtime(0); - ret.set_ctime(0); - ret.set_filesize(0); + ret.set_mtime(1); + ret.set_ctime(1); + ret.set_filesize(1); return ret; } diff --git a/tests/librarymodel_test.cpp b/tests/librarymodel_test.cpp index 92779a53c..296b66d2a 100644 --- a/tests/librarymodel_test.cpp +++ b/tests/librarymodel_test.cpp @@ -49,10 +49,10 @@ class LibraryModelTest : public ::testing::Test { Song AddSong(Song& song) { song.set_directory_id(1); - if (song.mtime() == -1) song.set_mtime(0); - if (song.ctime() == -1) song.set_ctime(0); + if (song.mtime() == -1) song.set_mtime(1); + if (song.ctime() == -1) song.set_ctime(1); if (song.filename().isNull()) song.set_filename("/test/foo"); - if (song.filesize() == -1) song.set_filesize(0); + if (song.filesize() == -1) song.set_filesize(1); if (!added_dir_) { backend_->AddDirectory("/test");