Skip to content

Enable privileged port test#12

Open
ackintosh wants to merge 4 commits into
openethereum:masterfrom
ackintosh:enable-privileged-port-test
Open

Enable privileged port test#12
ackintosh wants to merge 4 commits into
openethereum:masterfrom
ackintosh:enable-privileged-port-test

Conversation

@ackintosh

Copy link
Copy Markdown
Contributor

This PR closes #11

initialize_logger() sets the logger into global variable. That is an obstacle to write tests for `execute()` because it will be panicked when initialize_logger() called twice.
@ackintosh

Copy link
Copy Markdown
Contributor Author

I've verified the tests including privileged_port test is passed. 😃

$ pwd
/Users/akihito1/src/github.com/ackintosh/whisper/cli

$ cargo test

running 4 tests
test tests::invalid_argument ... ok
test tests::invalid_ip_address ... ok
test tests::invalid_whisper_pool_size ... ok
test tests::privileged_port ... ok

test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

@ackintosh

Copy link
Copy Markdown
Contributor Author

This PR is ready for review. 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cli: privileged_port test is ignored

1 participant