Skip to content

Commit

Permalink
fix: clippy & give a bit more time before terminate for relay test
Browse files Browse the repository at this point in the history
  • Loading branch information
erikziyunchi committed Nov 10, 2023
1 parent 8bbc3c7 commit d8bfa5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/tests/cross_lang_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ fn test_cross_lang_wasm_relay() -> Result<(), Box<dyn std::error::Error>> {
let handle_water = water_client.run_worker().unwrap();

// give it a second before cancel to let the connector check correct transfer
std::thread::sleep(std::time::Duration::from_secs(1));
std::thread::sleep(std::time::Duration::from_secs(2));

water_client.cancel().unwrap();

Expand Down
6 changes: 2 additions & 4 deletions tests/tests/spinning_relay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ use tracing::Level;

use std::{
fs::File,
io::{Error, ErrorKind, Read, Write},
net::{TcpListener, TcpStream},
vec,
io::{Error, ErrorKind, Write},
};

use tempfile::tempdir;
Expand All @@ -31,7 +29,7 @@ fn test_cross_lang_wasm_relay() -> Result<(), Box<dyn std::error::Error>> {
let mut file = File::create(&file_path)?;
writeln!(file, "{}", cfg_str)?;

let test_message = b"hello";
let _test_message = b"hello";

// // starting the listener in another thread it to relay to
// let handle_remote = std::thread::spawn(|| {
Expand Down

0 comments on commit d8bfa5f

Please sign in to comment.