Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1175,14 +1175,6 @@ pub mod tests {
env::remove_var(ZTUNNEL_WORKER_THREADS);
assert_eq!(parse_worker_threads(2).unwrap(), 2);

// Test invalid percentage
env::set_var(ZTUNNEL_WORKER_THREADS, "150%");
assert!(parse_worker_threads(2).is_err());

// Test invalid number
env::set_var(ZTUNNEL_WORKER_THREADS, "invalid");
assert!(parse_worker_threads(2).is_err());

// Test without CPU limit (should use system CPU count)
env::remove_var(ZTUNNEL_CPU_LIMIT);
let system_cpus = num_cpus::get();
Expand Down