Skip to content

Commit 663f80b

Browse files
wesmclaude
andcommitted
Set explicit args for install-hook test command
Prevents test flakiness from go test flags being parsed by cobra. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 88be010 commit 663f80b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/roborev/main_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,7 @@ func TestInstallHookCmdCreatesHooksDirectory(t *testing.T) {
435435

436436
// Run install-hook command
437437
installCmd := installHookCmd()
438+
installCmd.SetArgs([]string{})
438439
err := installCmd.Execute()
439440

440441
if err != nil {

0 commit comments

Comments
 (0)