mirror of
https://github.com/ntex-rs/ntex.git
synced 2025-04-03 21:07:39 +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]
|
||||
async fn transform() {
|
||||
let factory = apply(Rc::new(Tr), fn_service(|i: usize| ok::<_, ()>(i * 2)))
|
||||
.clone()
|
||||
.map_init_err(|_| ());
|
||||
let factory = apply(
|
||||
Rc::new(Tr.map_init_err(|_| ()).clone()),
|
||||
fn_service(|i: usize| ok::<_, ()>(i * 2)),
|
||||
)
|
||||
.clone();
|
||||
|
||||
let srv = factory.new_service(()).await.unwrap();
|
||||
let res = srv.call(10).await;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue