Skip to content

Commit

Permalink
Fix broker loop test
Browse files Browse the repository at this point in the history
  • Loading branch information
Fanda Vacek committed Sep 2, 2024
1 parent ae14c59 commit bf63d2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ async fn test_broker_loop() {
assert_eq!(list, RpcValue::from(roles.clone()).as_list());
let resp = call(&join_path(path, "tester"), METH_VALUE, None, &call_ctx).await.unwrap();
let role1 = Role::try_from(&resp).unwrap();
let role2 = Role { roles: vec!["client".into()], access: vec![AccessRule{ shv_ri: "test/**:*".into(), grant: "cfg".into() }] };
assert_eq!(role1, role2);
let role2 = config.access.roles.get("tester").unwrap();
assert_eq!(&role1, role2);
}
{
let role = Role { roles: vec!["foo".into()], access: vec![AccessRule{ shv_ri: "bar/**:*".into(), grant: "cfg".into() }] };
Expand Down

0 comments on commit bf63d2e

Please sign in to comment.