Fix playlist shuffle test, current index will never be at the end

This commit is contained in:
Jonas Kvinge
2020-07-10 17:06:20 +02:00
parent d2bfc73b91
commit c2bd452391

View File

@@ -456,11 +456,11 @@ TEST_F(PlaylistTest, ShuffleThenNext) {
//EXPECT_EQ(index + 1, playlist_.next_row()); //EXPECT_EQ(index + 1, playlist_.next_row());
// Shuffle until the current index *is* at the end // Shuffle until the current index *is* at the end
forever { //forever {
playlist_.Shuffle(); //playlist_.Shuffle();
if (playlist_.current_row() == items.count()-1) //if (playlist_.current_row() == items.count()-1)
break; //break;
} //}
index = playlist_.current_row(); index = playlist_.current_row();
EXPECT_EQ("Item 0", playlist_.current_item()->Metadata().title()); EXPECT_EQ("Item 0", playlist_.current_item()->Metadata().title());