Remove all remaining dbg! instances.

This commit is contained in:
Nick Mathewson 2021-11-04 10:54:47 -04:00
parent e3f8a9f94f
commit dae8cdb463
4 changed files with 0 additions and 11 deletions

View File

@ -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(())
}
}

View File

@ -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);

View File

@ -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

View File

@ -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"));
}