File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -1327,15 +1327,11 @@ mod test {
1327
1327
. expect ( "Should build Request" )
1328
1328
} ;
1329
1329
1330
- let mut params: HashMap < String , String > = HashMap :: new ( ) ;
1331
- params. insert ( "id" . to_string ( ) , channel_context. context . id ( ) . to_string ( ) ) ;
1332
- params. insert ( "addr" . to_string ( ) , CREATOR . to_string ( ) ) ;
1333
-
1334
1330
// Calling with non existent accounting
1335
1331
let res = add_spender_leaf_axum (
1336
1332
app. clone ( ) ,
1337
1333
Extension ( channel_context. clone ( ) ) ,
1338
- Path ( params . clone ( ) ) ,
1334
+ Path ( ( channel_context . context . id ( ) , * CREATOR ) ) ,
1339
1335
)
1340
1336
. await ;
1341
1337
assert ! ( res. is_ok( ) ) ;
@@ -1380,7 +1376,7 @@ mod test {
1380
1376
let res = add_spender_leaf_axum (
1381
1377
app. clone ( ) ,
1382
1378
Extension ( channel_context. clone ( ) ) ,
1383
- Path ( params ) ,
1379
+ Path ( ( channel_context . context . id ( ) , * CREATOR ) ) ,
1384
1380
)
1385
1381
. await ;
1386
1382
assert ! ( res. is_ok( ) ) ;
You can’t perform that action at this time.
0 commit comments