Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gurinderu committed Oct 28, 2023
1 parent 551cda4 commit 5df20e7
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions crates/nox-tests/tests/builtin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,9 @@ async fn non_owner_remove_service() {
)
.await;

client2.send_particle(
r#"
let args = client2
.execute_particle(
r#"
(seq
(seq
(call relay ("srv" "list") [] list_before)
Expand All @@ -313,15 +314,16 @@ async fn non_owner_remove_service() {
)
)
"#,
hashmap! {
"relay" => json!(client.node.to_string()),
"service" => json!(tetraplets_service.id),
},
);
hashmap! {
"relay" => json!(client.node.to_string()),
"service" => json!(tetraplets_service.id),
},
)
.await
.unwrap();

use serde_json::Value::{Array, String};

let args = client2.receive_args().await.unwrap();
if let [Array(before), Array(after), String(error)] = args.as_slice() {
assert_eq!(before.len(), 1);
assert_eq!(after.len(), 1);
Expand Down

0 comments on commit 5df20e7

Please sign in to comment.