Skip to content

Commit 1db431f

Browse files
committed
fixed failing test
1 parent 8b77683 commit 1db431f

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

sentry/src/routes/channel.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,15 +1327,11 @@ mod test {
13271327
.expect("Should build Request")
13281328
};
13291329

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-
13341330
// Calling with non existent accounting
13351331
let res = add_spender_leaf_axum(
13361332
app.clone(),
13371333
Extension(channel_context.clone()),
1338-
Path(params.clone()),
1334+
Path((channel_context.context.id(), *CREATOR)),
13391335
)
13401336
.await;
13411337
assert!(res.is_ok());
@@ -1380,7 +1376,7 @@ mod test {
13801376
let res = add_spender_leaf_axum(
13811377
app.clone(),
13821378
Extension(channel_context.clone()),
1383-
Path(params),
1379+
Path((channel_context.context.id(), *CREATOR)),
13841380
)
13851381
.await;
13861382
assert!(res.is_ok());

0 commit comments

Comments
 (0)