Skip to content

Commit

Permalink
test: increase threads to 8
Browse files Browse the repository at this point in the history
  • Loading branch information
akiradeveloper committed Oct 30, 2024
1 parent 22f1fac commit eb7e4e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/env/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ impl Node {
.name(nd_tag.clone())
.spawn(move || {
let runtime = tokio::runtime::Builder::new_multi_thread()
.worker_threads(8)
.thread_name(nd_tag)
.enable_all()
.build()
Expand Down
2 changes: 1 addition & 1 deletion tests/sorock-tests/tests/6_persistency.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ async fn n3_restore() -> Result<()> {
cluster.env().add_node(1);
cluster.env().check_connectivity(1).await?;
// Wait for election.
tokio::time::sleep(Duration::from_secs(30)).await;
tokio::time::sleep(Duration::from_secs(10)).await;
assert_eq!(cluster.user(1).read(0).await?, cur_state);

Ok(())
Expand Down

0 comments on commit eb7e4e5

Please sign in to comment.