enable debug logging in the cycles tests

This commit is contained in:
Niko Matsakis 2021-10-24 05:51:03 -04:00
parent b72b251240
commit 40139abc24
2 changed files with 3 additions and 0 deletions

View file

@ -25,5 +25,6 @@ env_logger = "0.7"
linked-hash-map = "0.5.2"
rand = "0.7"
rand_distr = "0.2.1"
test-env-log = "0.2.7"
[workspace]

View file

@ -1,4 +1,5 @@
use salsa::{ParallelDatabase, Snapshot};
use test_env_log::test;
#[derive(PartialEq, Eq, Hash, Clone, Debug)]
struct Error {
@ -148,6 +149,7 @@ fn cycle_appears() {
db.set_cycle_leaf(false);
assert!(db.cycle_a().is_ok());
db.set_cycle_leaf(true);
log::debug!("Set Cycle Leaf");
assert!(db.cycle_a().is_err());
}