From 4ec89102c8857896265f1b62fea88c73624828a6 Mon Sep 17 00:00:00 2001 From: John Maguire Date: Wed, 18 May 2011 15:05:19 +0000 Subject: [PATCH] Fix DeleteSongs test. --- tests/librarybackend_test.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/librarybackend_test.cpp b/tests/librarybackend_test.cpp index ec8d6e1f5..441346773 100644 --- a/tests/librarybackend_test.cpp +++ b/tests/librarybackend_test.cpp @@ -288,10 +288,10 @@ TEST_F(SingleSong, DeleteSongs) { EXPECT_EQ("Title", songs_deleted[0].title()); EXPECT_EQ(1, songs_deleted[0].id()); - // Check we can't retreive that song any more + // Check the song is marked as deleted. Song song = backend_->GetSongById(1); - EXPECT_FALSE(song.is_valid()); - EXPECT_EQ(-1, song.id()); + EXPECT_TRUE(song.is_valid()); + EXPECT_TRUE(song.is_unavailable()); // And the artist or album shouldn't show up either QStringList artists = backend_->GetAllArtists();