diff --git a/crates/thing-core/tests/resolve.rs b/crates/thing-core/tests/resolve.rs index 8250a2c..95949ad 100644 --- a/crates/thing-core/tests/resolve.rs +++ b/crates/thing-core/tests/resolve.rs @@ -937,7 +937,7 @@ fn an_unplaced_slot_argument_does_not_count_toward_the_depth_rule() { #[test] fn input_too_deep_to_recurse_into_is_refused_with_its_own_code() { big(|| { - let resolution = run(&surface(chain(1100, false), &[]), &MemState::new()); + let resolution = run(&surface(chain(STACK_TEST_DEPTH, false), &[]), &MemState::new()); assert!(resolution.tree.is_none()); assert_eq!(resolution.diagnostics.len(), 1, "{:?}", resolution.diagnostics); assert_eq!(resolution.diagnostics[0].code, Code::TooDeepToResolve); @@ -953,3 +953,5 @@ fn a_slot_naming_a_param_of_another_kind_is_invalid() { only(&resolution, Code::CompositionInvalid, Some("u"), "used as a slot"); }); } + +const STACK_TEST_DEPTH: usize = 1100;