Skip to content

Commit 1837b6c

Browse files
committed
Use more workers in the tests
1 parent aa23e2f commit 1837b6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dht-cache/src/cache.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ mod test {
358358
use crate::dht::test::*;
359359
use std::{collections::HashSet, pin::pin};
360360

361-
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
361+
#[tokio::test(flavor = "multi_thread", worker_threads = 3)]
362362
async fn builder() {
363363
let cfg = crate::Config {
364364
shared_key: "d061545647652562b4648f52e8373b3a417fc0df56c332154460da1801b341e9"
@@ -369,7 +369,7 @@ mod test {
369369
let (_cache, _events) = Builder::from_config(cfg).make_channel().await.unwrap();
370370
}
371371

372-
#[tokio::test]
372+
#[tokio::test(flavor = "multi_thread", worker_threads = 8)]
373373
async fn syncronization() {
374374
let [mut a, mut b, mut c] = make_peers(2).await;
375375
let mut d = make_peer(2).await;

0 commit comments

Comments
 (0)