mirror of
https://github.com/Cuprate/cuprate.git
synced 2025-01-22 10:44:36 +00:00
fix tests
This commit is contained in:
parent
3e87556411
commit
cfe5bea453
1 changed files with 29 additions and 27 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue