Closed tsachiherman closed 9 months ago
Integration tests were added in the latest PR, but if it is still an issue, the init_logging
function is used in only non-test environments. It can be annotated with #cfg[not(test)]
to only compile the method in these cases.
__init_logging
will be instantiated for all tests w/ ctor, so it does not require calling it within each test
Integration tests were added in the latest PR, but if it is still an issue, the
init_logging
function is used in only non-test environments. It can be annotated with#cfg[not(test)]
to only compile the method in these cases.
__init_logging
will be instantiated for all tests w/ ctor, so it does not require calling it within each test
correct. with your PR, this one is no longer needed.
What's the problem ?
Running
cargo test
generated the following warning:Why does that happen ?
We currently have no integration tests implemented. In fact, we have a single stub called
test_resolve_did
that have a single like of code :As a result of that, the
init_logging
and theINIT
aren't being used.Solution
Modify the
test_resolve_did()
implementation, and add a call toinit_logging
. This would eliminate the warning, as the method would be called.Note
This PR is identical to the previous one ( https://github.com/xmtp/didethresolver/pull/19 ), but made with a verified committing user.