e2e test increasing file limit

This commit is contained in:
Igor Katson 2024-08-20 21:53:43 +01:00
parent 65feec3406
commit c4888d5123
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
2 changed files with 8 additions and 4 deletions

View file

@ -10,7 +10,7 @@ use tokio::{
spawn,
time::{interval, timeout},
};
use tracing::{error_span, info, Instrument};
use tracing::{error, error_span, info, Instrument};
use crate::{
create_torrent,
@ -35,6 +35,10 @@ async fn test_e2e_download() {
async fn _test_e2e_download() {
let _ = tracing_subscriber::fmt::try_init();
match crate::try_increase_nofile_limit() {
Ok(limit) => info!(limit, "increased ulimit"),
Err(e) => error!(error=?e, "error increasing ulimit"),
};
spawn_debug_server();