Skip to content

Commit

Permalink
jsonrpc: correct the tests
Browse files Browse the repository at this point in the history
Signed-off-by: Vincenzo Palazzo <[email protected]>
  • Loading branch information
vincenzopalazzo committed May 24, 2024
1 parent b357a92 commit ee671ab
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lampo-jsonrpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ mod tests {
assert!(res.is_ok(), "{:?}", res);

let handler = server.handler();
let worker = server.spawn();
server.spawn();
let request = Request::<Value> {
id: Some(0.into()),
jsonrpc: String::from_str("2.0").unwrap(),
Expand Down Expand Up @@ -382,7 +382,5 @@ mod tests {
let resp = client_worker2.join().unwrap();
assert_eq!(Id::Str("1".to_owned()), resp.id);
handler.stop();

let _ = worker.join();
}
}

0 comments on commit ee671ab

Please sign in to comment.