update test todo comment, use same env var as worker test but default to 1

This commit is contained in:
phiresky 2024-07-15 16:18:47 +02:00
parent 9d470b7b03
commit 10758ab8ea

View file

@ -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?,