fix tests
Some checks failed
Audit / audit (push) Has been cancelled
Deny / audit (push) Has been cancelled

This commit is contained in:
Boog900 2024-06-13 23:07:35 +01:00
parent 3e87556411
commit cfe5bea453
No known key found for this signature in database
GPG key ID: 42AB1287CB0041C2

View file

@ -50,7 +50,8 @@ proptest! {
let tokio_pool = tokio::runtime::Builder::new_multi_thread().enable_all().build().unwrap(); let tokio_pool = tokio::runtime::Builder::new_multi_thread().enable_all().build().unwrap();
tokio_pool.block_on(timeout(Duration::from_secs(600), async move { tokio_pool.block_on(async move {
timeout(Duration::from_secs(600), async move {
let client_pool = ClientPool::new(); let client_pool = ClientPool::new();
let mut peer_ids = Vec::with_capacity(peers); let mut peer_ids = Vec::with_capacity(peers);
@ -84,7 +85,8 @@ proptest! {
for (i, block) in blocks.into_iter().enumerate() { for (i, block) in blocks.into_iter().enumerate() {
assert_eq!(&block, blockchain.blocks.get_index(i + 1).unwrap().1); assert_eq!(&block, blockchain.blocks.get_index(i + 1).unwrap().1);
} }
})).unwrap(); }).await
}).unwrap();
} }
} }