mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-05-14 05:52:48 +00:00
Run tests sequentially
Since we share a tun device and routes, the tests do not support being executed in parallel.
This commit is contained in:
parent
1ac5428db5
commit
f6b4369fba
2 changed files with 6 additions and 2 deletions
|
@ -5,6 +5,7 @@ mod tests {
|
|||
use fork::Fork;
|
||||
use nix::sys::signal;
|
||||
use nix::unistd::Pid;
|
||||
use serial_test::serial;
|
||||
use std::env;
|
||||
use std::io::BufRead;
|
||||
use std::net::{SocketAddr, ToSocketAddrs};
|
||||
|
@ -147,11 +148,13 @@ mod tests {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[serial]
|
||||
fn test_socks5() {
|
||||
run_test(|test| test.proxy_type == ProxyType::Socks5)
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[serial]
|
||||
fn test_http() {
|
||||
run_test(|test| test.proxy_type == ProxyType::Http)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue