diff --git a/crates/thing-core/tests/layout.rs b/crates/thing-core/tests/layout.rs index ac0460f..57302ec 100644 --- a/crates/thing-core/tests/layout.rs +++ b/crates/thing-core/tests/layout.rs @@ -18,7 +18,7 @@ use thing_testkit::mem_state::MemState; use thing_testkit::measure::FixedMeasure; use thing_testkit::state::{self, Swarm}; -fn goldens() -> PathBuf { +fn golden_dir() -> PathBuf { PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("tests/goldens") } @@ -96,7 +96,7 @@ fn stem(fixture: Fixture) -> String { fn check(fixture: Fixture, suffix: &str, frame: &LayoutFrame) -> String { let text = fixture_text(fixture, frame); - golden::check(&goldens(), &format!("layout-{}{suffix}.txt", stem(fixture)), text.as_bytes()); + golden::check(&golden_dir(), &format!("layout-{}{suffix}.txt", stem(fixture)), text.as_bytes()); text }