fix tests
This commit is contained in:
parent
ef1cdbc91a
commit
d128ca4214
1 changed files with 2 additions and 1 deletions
|
|
@ -1024,8 +1024,9 @@ fn channel_order(
|
||||||
if tab != ChannelVideoTab::Shorts {
|
if tab != ChannelVideoTab::Shorts {
|
||||||
let mut popular_items = popular.items.iter().peekable();
|
let mut popular_items = popular.items.iter().peekable();
|
||||||
while let (Some(v), Some(next_v)) = (popular_items.next(), popular_items.peek()) {
|
while let (Some(v), Some(next_v)) = (popular_items.next(), popular_items.peek()) {
|
||||||
|
let vc = v.view_count.unwrap();
|
||||||
assert_gte(
|
assert_gte(
|
||||||
v.view_count.unwrap(),
|
vc + (vc as f64 * 0.05) as u64,
|
||||||
next_v.view_count.unwrap(),
|
next_v.view_count.unwrap(),
|
||||||
"most popular view count",
|
"most popular view count",
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Reference in a new issue