-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
Currently the privileged_port test is ignored.
running 4 tests
test tests::privileged_port ... ignored
test tests::invalid_argument ... ok
test tests::invalid_ip_address ... ok
test tests::invalid_whisper_pool_size ... ok
test result: ok. 3 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out
I tried removing #[ignore]
from the test, got the error:
running 4 tests
test tests::invalid_argument ... ok
test tests::privileged_port ... FAILED
test tests::invalid_ip_address ... ok
test tests::invalid_whisper_pool_size ... ok
failures:
---- tests::privileged_port stdout ----
thread 'tests::privileged_port' panicked at 'Builder::init should not be called after logger initialized: SetLoggerError(())', src/libcore/result.rs:1165:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
failures:
tests::privileged_port
test result: FAILED. 3 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out
The error is due to initialize_logger is called twice from tests by enabling the privileged_port test.
My suggestion:
moving initialize_logger
call from execute() to main() will be the solution. It avoids the error and enable the the privileged_port test.
Metadata
Metadata
Assignees
Labels
No labels