mirror of
https://github.com/ntex-rs/ntex.git
synced 2025-04-04 21:37:58 +03:00
fix wrong transform test
This commit is contained in:
parent
557f878895
commit
ce85dcd047
1 changed files with 5 additions and 3 deletions
|
@ -274,9 +274,11 @@ mod tests {
|
||||||
|
|
||||||
#[ntex_rt::test]
|
#[ntex_rt::test]
|
||||||
async fn transform() {
|
async fn transform() {
|
||||||
let factory = apply(Rc::new(Tr), fn_service(|i: usize| ok::<_, ()>(i * 2)))
|
let factory = apply(
|
||||||
.clone()
|
Rc::new(Tr.map_init_err(|_| ()).clone()),
|
||||||
.map_init_err(|_| ());
|
fn_service(|i: usize| ok::<_, ()>(i * 2)),
|
||||||
|
)
|
||||||
|
.clone();
|
||||||
|
|
||||||
let srv = factory.new_service(()).await.unwrap();
|
let srv = factory.new_service(()).await.unwrap();
|
||||||
let res = srv.call(10).await;
|
let res = srv.call(10).await;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue