-
- match client::Client::new("127.0.0.1", PORT) {
- Ok(mut client) => {
- client.start_tests();
- let _ = client.close();
- },
- Err(e) => {
- println!("Unable to create a client. Error: {}", e);
- return
- }
- }
-
- io::stdin().read_line().ok().expect("Failed to read line");
+
+ Client::start_tests("::1", PORT);
+
+ println!("Press any key to quit");
+ io::stdin().read_line().ok().expect("Failed to read line");
+