Skip to content

Commit 7bd049a

Browse files
committed
feat: v2.0.4
1 parent 181a6da commit 7bd049a

File tree

3 files changed

+3
-15
lines changed

3 files changed

+3
-15
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tcp-request"
3-
version = "2.0.3"
3+
version = "2.0.4"
44
edition = "2021"
55
authors = ["ltpp-universe <root@ltpp.vip>"]
66
license = "MIT"

src/cfg.rs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,6 @@ use std::{
55
time::Instant,
66
};
77

8-
#[test]
9-
fn test_http_post_request() {
10-
let mut request_builder = RequestBuilder::new().host("127.0.0.1").port(60000).build();
11-
request_builder
12-
.send("tcp send".as_bytes())
13-
.and_then(|response| {
14-
println!("ResponseTrait => {}", response.text());
15-
Ok(())
16-
})
17-
.unwrap_or_else(|e| println!("Error => {}", e));
18-
}
19-
208
#[test]
219
fn test_readme_text() {
2210
let mut request_builder = RequestBuilder::new().host("127.0.0.1").port(60000).build();
@@ -42,7 +30,7 @@ fn test_readme_binary() {
4230
}
4331

4432
#[test]
45-
fn test_thread_http_get_request() {
33+
fn test_thread_request() {
4634
let num_threads: i32 = 10;
4735
let mut handles: Vec<JoinHandle<()>> = Vec::new();
4836
let request_builder: Arc<Mutex<BoxRequestTrait>> = Arc::new(Mutex::new(

0 commit comments

Comments
 (0)