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
1 changed files with 5 additions and 5 deletions

View File

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