Turn test debugging output up to error! level
I'd rather not turn up the logging level or all tests
@@ -195,7 +195,7 @@ mod tests {
/// events have had plenty of time to process.
fn wait_for_debounce_interval() {
let wait_duration = SpecWatcherDelay::configured_value().0 + Duration::from_millis(2);
- trace!("wait_for_debounce_interval: waiting {:?}", wait_duration);
+ error!("wait_for_debounce_interval: waiting {:?}", wait_duration);
thread::sleep(wait_duration);
}
@@ -212,7 +212,7 @@ mod tests {
#[test]
fn can_get_events_for_spec_files() {
env_logger::try_init().ok();
- debug!("can_get_events_for_spec_files starting");
+ error!("can_get_events_for_spec_files starting");
let _delay = lock_delay_var();
let dir = TempDir::new().expect("Could not create directory");
@@ -230,10 +230,9 @@ mod tests {
wait_for_debounce_interval();
}
- // assert!(sw.has_events(), "There should be an event now");
assert!(!sw.has_events(),
"Should be no more events after you've checked");
- debug!("can_get_events_for_spec_files done");
+ error!("can_get_events_for_spec_files done");
}
/// Currently, the spec watcher will respond to changes to any
@@ -245,7 +244,7 @@ mod tests {
#[test]
fn can_get_events_for_non_spec_files() {
env_logger::try_init().ok();
- debug!("can_get_events_for_non_spec_files starting");
+ error!("can_get_events_for_non_spec_files starting");
let _delay = lock_delay_var();
let dir = TempDir::new().expect("Could not create directory");
@@ -263,16 +262,15 @@ mod tests {
wait_for_debounce_interval();
}
- // assert!(sw.has_events(), "There should be an event now");
assert!(!sw.has_events(),
"Should be no more events after you've checked");
- debug!("can_get_events_for_non_spec_files done");
+ error!("can_get_events_for_non_spec_files done");
}
#[test]
fn short_debounce_delays_also_work() {
env_logger::try_init().ok();
- debug!("short_debounce_delays_also_work starting");
+ error!("short_debounce_delays_also_work starting");
let delay = lock_delay_var();
delay.set("1");
@@ -295,9 +293,8 @@ mod tests {
wait_for_debounce_interval();
}
- // assert!(sw.has_events(), "There should be an event now");
assert!(!sw.has_events(),
"Should be no more events after you've checked");
- debug!("short_debounce_delays_also_work starting");
+ error!("short_debounce_delays_also_work starting");
}
}
