Fix playlist shuffle test, current index will never be at the end
This commit is contained in:
@@ -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());
|
||||||
|
|||||||
Reference in New Issue
Block a user