Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
lnfjpt committed Nov 30, 2023
1 parent 8b21daf commit 813ffab
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ fn count_test_04() {
input
.input_from(0..10u64)?
.apply(|sub| {
sub.repartition(move |id| Ok(*id % workers))
sub.repartition(move |id| Ok(*id % 2))
.flat_map(|i| Ok(0..i))?
.repartition(move |id| Ok(*id % workers))
.repartition(move |id| Ok(*id % 2))
.count()?
.into_stream()?
.map(|i| Ok(i))?
Expand All @@ -129,7 +129,7 @@ fn count_test_04() {
count += d;
}

assert_eq!(360, count);
assert_eq!(90, count);
}

#[test]
Expand Down

0 comments on commit 813ffab

Please sign in to comment.