From f886f28acff3d934670243abb364f42be084cd73 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 3 Jun 2026 01:41:13 +0000 Subject: [PATCH] test(tui): update walk-depth test for new default depth (#2488) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `workspace_completions_honor_configured_walk_depth` placed its probe file at component depth 9 and asserted the *default* walk excludes it — true at the old default (6) but not the new one (10). Move the probe to depth 12 so it stays past the default while remaining within the explicit deeper walk (16) and the unlimited (0) cases the test also exercises. https://claude.ai/code/session_01MQrnh6wHfrEYN5BBdMarC1 --- crates/tui/src/working_set.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/tui/src/working_set.rs b/crates/tui/src/working_set.rs index 277c74f9..668d503b 100644 --- a/crates/tui/src/working_set.rs +++ b/crates/tui/src/working_set.rs @@ -1563,7 +1563,9 @@ mod tests { #[test] fn workspace_completions_honor_configured_walk_depth() { let tmp = TempDir::new().unwrap(); - let deep_dir = tmp.path().join("a/b/c/d/e/f/g/h"); + // Sits at component depth 12, past the default walk depth (10) but + // within the explicit deeper walk (16) below. + let deep_dir = tmp.path().join("a/b/c/d/e/f/g/h/i/j/k"); std::fs::create_dir_all(&deep_dir).unwrap(); std::fs::write(deep_dir.join("target.txt"), "target").unwrap();