mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-30 17:14:58 +01:00
Fix playlist shuffle test, current index will never be at the end
This commit is contained in:
parent
d2bfc73b91
commit
c2bd452391
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user