From c2bd452391868471a0df0aa9d59b33a9f5579b7e Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Fri, 10 Jul 2020 17:06:20 +0200 Subject: [PATCH] Fix playlist shuffle test, current index will never be at the end --- tests/src/playlist_test.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/src/playlist_test.cpp b/tests/src/playlist_test.cpp index 84c2f22c..e4d9fac8 100644 --- a/tests/src/playlist_test.cpp +++ b/tests/src/playlist_test.cpp @@ -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());