Skip to content

Commit b2063b8

Browse files
aaronbassettclaude
andcommitted
fix(tests): make housekeep subcommand test platform-agnostic
The test was failing on Windows because the help text shows "mutx.exe housekeep" instead of "mutx housekeep". Updated to check for platform-independent parts of the usage message. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 1fa5be2 commit b2063b8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/cli_housekeep_test.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,8 @@ fn test_housekeep_requires_subcommand() {
7979
cmd.arg("housekeep")
8080
.assert()
8181
.failure()
82-
.stderr(predicate::str::contains("Usage: mutx housekeep <COMMAND>"));
82+
// Check for key parts of the usage message, avoiding platform-specific binary name
83+
.stderr(predicate::str::contains("housekeep <COMMAND>"))
84+
.stderr(predicate::str::contains("locks"))
85+
.stderr(predicate::str::contains("backups"));
8386
}

0 commit comments

Comments
 (0)