mirror of
https://github.com/salsa-rs/salsa.git
synced 2024-12-24 12:58:37 +00:00
enable debug logging in the cycles tests
This commit is contained in:
parent
b72b251240
commit
40139abc24
2 changed files with 3 additions and 0 deletions
|
@ -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]
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue