mirror of
https://github.com/ntex-rs/ntex.git
synced 2025-04-04 05:17:39 +03:00
Improve tests coverage (#161)
* improve tests coverage * update base64 crate
This commit is contained in:
parent
9bf0908f41
commit
fc7553b8bc
21 changed files with 137 additions and 51 deletions
|
@ -1064,7 +1064,14 @@ async fn pool_usage() {
|
|||
|
||||
let p_ref = PoolId::P1.set_pool_size(10 * 1024);
|
||||
let p1 = p_ref.pool();
|
||||
let p2 = p_ref.pool();
|
||||
let p2 = p_ref.pool().clone();
|
||||
|
||||
let p_ref2 = PoolRef::from(&p1);
|
||||
assert_eq!(p_ref2.read_params_high(), 4096);
|
||||
assert_eq!(p_ref2.write_params_high(), 4096);
|
||||
p_ref2.id().set_spawn_fn(|f| {
|
||||
let _ = ntex::rt::spawn(f);
|
||||
});
|
||||
|
||||
assert_eq!(Poll::Ready(()), util::lazy(|cx| p1.poll_ready(cx)).await);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue