Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
aggyomfg committed Apr 21, 2024
1 parent f16b055 commit 660b5ca
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,13 @@ impl ClientConfig for TcpConfig {

#[test]
fn tcp_connection() {
let server_addr = "127.0.0.1:3000";

let mut app_server = App::new();
app_server.add_plugins(ServerPlugin::<TcpConfig>::bind("127.0.0.1:3000"));
app_server.add_plugins(ServerPlugin::<TcpConfig>::bind(server_addr));

let mut app_client = App::new();
app_client.add_plugins(ClientPlugin::<TcpConfig>::connect("127.0.0.1:3000"));
app_client.add_plugins(ClientPlugin::<TcpConfig>::connect(server_addr));

app_server.update(); // bind
app_client.update(); // connect
Expand Down

0 comments on commit 660b5ca

Please sign in to comment.