Skip to content

Commit

Permalink
Run a higher-stress test
Browse files Browse the repository at this point in the history
  • Loading branch information
carver committed Jun 10, 2023
1 parent 1028636 commit 8ff1257
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use utp_rs::cid;
use utp_rs::conn::ConnectionConfig;
use utp_rs::socket::UtpSocket;

#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
#[tokio::test(flavor = "multi_thread", worker_threads = 16)]
async fn socket() {
tracing_subscriber::fmt::init();

Expand All @@ -23,7 +23,7 @@ async fn socket() {
let mut handles = vec![];

// start 50 transfers, step by two to avoid cid collisions
for i in 0..200 {
for i in 0..1500 {
let handle = initiate_transfer(i * 2, recv_addr, recv.clone(), send_addr, send.clone()).await;
handles.push(handle.0);
handles.push(handle.1);
Expand Down

0 comments on commit 8ff1257

Please sign in to comment.