fix tests
This commit is contained in:
parent
805cc5088f
commit
2c4d70cc0d
1 changed files with 1 additions and 1 deletions
|
|
@ -1001,7 +1001,7 @@ fn channel_order(
|
||||||
))
|
))
|
||||||
.unwrap();
|
.unwrap();
|
||||||
// Upload dates should be in descending order
|
// Upload dates should be in descending order
|
||||||
if tab != ChannelVideoTab::Shorts {
|
if tab == ChannelVideoTab::Videos {
|
||||||
let mut latest_items = latest.items.iter().peekable();
|
let mut latest_items = latest.items.iter().peekable();
|
||||||
while let (Some(v), Some(next_v)) = (latest_items.next(), latest_items.peek()) {
|
while let (Some(v), Some(next_v)) = (latest_items.next(), latest_items.peek()) {
|
||||||
if !v.is_upcoming && !v.is_live && !next_v.is_upcoming && !next_v.is_live {
|
if !v.is_upcoming && !v.is_live && !next_v.is_upcoming && !next_v.is_live {
|
||||||
|
|
|
||||||
Reference in a new issue