Skip to content

Commit

Permalink
fix miri
Browse files Browse the repository at this point in the history
  • Loading branch information
alecmocatta committed Aug 17, 2020
1 parent 4c2d2ec commit 30c72ed
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions amadeus-streaming/src/count_min.rs
Expand Up @@ -262,6 +262,7 @@ mod tests {
}

#[test]
#[cfg_attr(miri, ignore)]
fn test_increment_multi() {
let mut cms = CountMinSketch64::<u64>::new(0.99, 2.0 / 100.0, ());
for i in 0..1_000_000 {
Expand Down
1 change: 1 addition & 0 deletions amadeus-streaming/src/distinct.rs
Expand Up @@ -634,6 +634,7 @@ mod test {
}

#[test]
#[cfg_attr(miri, ignore)]
fn push() {
let actual = 100_000.0;
let p = 0.05;
Expand Down
2 changes: 2 additions & 0 deletions amadeus-streaming/src/sample.rs
Expand Up @@ -223,6 +223,7 @@ mod test {
use std::collections::HashMap;

#[test]
#[cfg_attr(miri, ignore)]
fn sample_without_replacement() {
let total = 6;
let samples = 2;
Expand All @@ -242,6 +243,7 @@ mod test {
}

#[test]
#[cfg_attr(miri, ignore)]
fn sample_unstable() {
let total = 6;
let samples = 2;
Expand Down
2 changes: 2 additions & 0 deletions amadeus-streaming/src/top.rs
Expand Up @@ -256,6 +256,7 @@ mod test {
use std::time;

#[test]
#[cfg_attr(miri, ignore)]
fn abc() {
let mut rng =
rand::rngs::SmallRng::from_seed([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]);
Expand Down Expand Up @@ -339,6 +340,7 @@ mod test {
}

#[test]
#[cfg_attr(miri, ignore)]
fn top_hll() {
let mut rng =
rand::rngs::SmallRng::from_seed([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]);
Expand Down

0 comments on commit 30c72ed

Please sign in to comment.