mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-29 15:51:20 +00:00
update test todo comment, use same env var as worker test but default to 1
This commit is contained in:
parent
9d470b7b03
commit
10758ab8ea
1 changed files with 7 additions and 1 deletions
|
@ -229,8 +229,14 @@ mod test {
|
|||
.app_data(context.clone())
|
||||
.build()
|
||||
.await?;
|
||||
let federation_worker_config = FederationWorkerConfig::default(); // TODO
|
||||
let concurrent_sends_per_instance = std::env::var("LEMMY_TEST_FEDERATION_CONCURRENT_SENDS")
|
||||
.ok()
|
||||
.and_then(|s| s.parse().ok())
|
||||
.unwrap_or(1);
|
||||
|
||||
let federation_worker_config = FederationWorkerConfig {
|
||||
concurrent_sends_per_instance,
|
||||
};
|
||||
let pool = &mut context.pool();
|
||||
let instances = vec![
|
||||
Instance::read_or_create(pool, "alpha.com".to_string()).await?,
|
||||
|
|
Loading…
Reference in a new issue