Skip to content

Commit

Permalink
chore(*): fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
wvwwvwwv committed Jul 28, 2024
1 parent fa436b8 commit 2c2d18b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/tests/correctness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,15 @@ mod hashmap_test {
}
}

#[test]
fn insert_drop() {
#[cfg_attr(miri, ignore)]
#[tokio::test]
async fn insert_drop() {
static INST_CNT: AtomicUsize = AtomicUsize::new(0);

let hashmap: HashMap<usize, R> = HashMap::default();
let workload_size = 1024;
for k in 0..workload_size {
assert!(hashmap.insert(k, R::new(&INST_CNT)).is_ok());
assert!(hashmap.insert_async(k, R::new(&INST_CNT)).await.is_ok());
}
assert_eq!(INST_CNT.load(Relaxed), workload_size);
assert_eq!(hashmap.len(), workload_size);
Expand Down

0 comments on commit 2c2d18b

Please sign in to comment.