From 1f92659e1551d8bd94fdea3092f1a0b37ef24524 Mon Sep 17 00:00:00 2001 From: Vincenzo Palazzo Date: Fri, 24 May 2024 17:53:16 +0200 Subject: [PATCH] jsonrpc: correct the tests Signed-off-by: Vincenzo Palazzo --- lampo-jsonrpc/src/lib.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lampo-jsonrpc/src/lib.rs b/lampo-jsonrpc/src/lib.rs index 5e84bd8c..dac5c6b6 100644 --- a/lampo-jsonrpc/src/lib.rs +++ b/lampo-jsonrpc/src/lib.rs @@ -328,7 +328,7 @@ mod tests { assert!(res.is_ok(), "{:?}", res); let handler = server.handler(); - let worker = server.spawn(); + server.spawn(); let request = Request:: { id: Some(0.into()), jsonrpc: String::from_str("2.0").unwrap(), @@ -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(); } }