Skip to content

Commit

Permalink
Remove failing, unrelevant test
Browse files Browse the repository at this point in the history
  • Loading branch information
pkolaczk committed Dec 10, 2021
1 parent 3ee31e0 commit b963a1a
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -582,20 +582,3 @@ fn main() {
}
}

#[cfg(test)]
mod test {
use super::*;

#[tokio::test]
async fn test_take_one_of_each() {
let s1 = futures::stream::iter(1..=3);
let s2 = futures::stream::iter(1..=2);
let s3 = futures::stream::iter(1..=2);
let mut streams = vec![s1, s2, s3];
assert_eq!(take_one_of_each(&mut streams).await, vec![1, 1, 1]);
assert_eq!(take_one_of_each(&mut streams).await, vec![2, 2, 2]);
assert_eq!(take_one_of_each(&mut streams).await, vec![3]);
assert_eq!(take_one_of_each(&mut streams).await, Vec::<u32>::new());
assert!(streams.is_empty());
}
}

0 comments on commit b963a1a

Please sign in to comment.