Replace or remove testing eprintln!()s.
The clippy code for warning about these on nightly CI can't tell the difference between cfg(test) and no cfg(test).
This commit is contained in:
parent
b26fbdb24f
commit
20b179bfa9
|
@ -623,6 +623,7 @@ mod test {
|
|||
use tor_cell::chancell::{msg as chanmsg, ChanCell};
|
||||
use tor_cell::relaycell::{msg as relaymsg, RelayCell, StreamId};
|
||||
use tor_llcrypto::pk;
|
||||
use tracing::trace;
|
||||
|
||||
fn rmsg_to_ccmsg<ID>(id: ID, msg: relaymsg::RelayMsg) -> ClientCircChanMsg
|
||||
where
|
||||
|
@ -734,13 +735,13 @@ mod test {
|
|||
let target = example_target();
|
||||
let params = CircParameters::default();
|
||||
let ret = if fast {
|
||||
eprintln!("doing fast create");
|
||||
trace!("doing fast create");
|
||||
pending.create_firsthop_fast(params).await
|
||||
} else {
|
||||
eprintln!("doing ntor create");
|
||||
trace!("doing ntor create");
|
||||
pending.create_firsthop_ntor(&target, params).await
|
||||
};
|
||||
eprintln!("create done: result {:?}", ret);
|
||||
trace!("create done: result {:?}", ret);
|
||||
ret
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue