Remove all remaining dbg! instances.
This commit is contained in:
parent
e3f8a9f94f
commit
dae8cdb463
|
@ -406,15 +406,12 @@ mod test {
|
|||
fn load_default_config() -> Result<()> {
|
||||
// TODO: this is duplicate code.
|
||||
let mut cfg = config::Config::new();
|
||||
dbg!("AAAA");
|
||||
cfg.merge(config::File::from_str(
|
||||
ARTI_DEFAULTS,
|
||||
config::FileFormat::Toml,
|
||||
))?;
|
||||
dbg!("BBBB");
|
||||
|
||||
let _parsed: ArtiConfig = cfg.try_into()?;
|
||||
dbg!("CCCCC");
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
|
|
@ -319,7 +319,6 @@ mod test {
|
|||
// This is set up to always fail.
|
||||
let target = (999, '❌');
|
||||
let res1 = mgr.get_or_launch(999, target).await;
|
||||
dbg!(&res1);
|
||||
assert!(matches!(res1, Err(Error::UnusableTarget(_))));
|
||||
|
||||
let chan3 = mgr.get_nowait(&999);
|
||||
|
|
|
@ -469,18 +469,15 @@ mod test {
|
|||
.wait_for(double_timeout(
|
||||
&rt,
|
||||
async move {
|
||||
dbg!("A");
|
||||
let sl = rt_clone.sleep(Duration::from_millis(100));
|
||||
rt_clone.allow_one_advance(Duration::from_millis(100));
|
||||
sl.await;
|
||||
dbg!("B");
|
||||
Ok(4_u32)
|
||||
},
|
||||
t1,
|
||||
t10,
|
||||
))
|
||||
.await;
|
||||
dbg!(&x);
|
||||
assert!(x.is_ok());
|
||||
assert_eq!(x.unwrap(), 4_u32);
|
||||
|
||||
|
@ -545,7 +542,6 @@ mod test {
|
|||
assert!(waited.is_err());
|
||||
let end2 = rt.now();
|
||||
assert!(duration_close_to(end - start, Duration::from_secs(1)));
|
||||
dbg!(end2, start, end2 - start);
|
||||
assert!(duration_close_to(end2 - start, Duration::from_secs(10)));
|
||||
});
|
||||
}
|
||||
|
@ -863,7 +859,6 @@ mod test {
|
|||
.await;
|
||||
assert!(matches!(outcome, Err(Error::CircTimeout)));
|
||||
|
||||
dbg!(&timeouts);
|
||||
assert_eq!(timeouts.len(), 2);
|
||||
assert!(!timeouts[0].0); // timeout
|
||||
|
||||
|
|
|
@ -660,8 +660,6 @@ mod test {
|
|||
fn crate_id() {
|
||||
let id = CrateId::this_crate().unwrap();
|
||||
assert_eq!(&id.crate_name, "tor-guardmgr");
|
||||
dbg!(&id.version);
|
||||
|
||||
assert_eq!(Some(id.version.as_ref()), option_env!("CARGO_PKG_VERSION"));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue