Skip to content

Commit d4b2152

Browse files
author
Test User
committed
fix(test): use getBinaryPath helper in help flag test
Replace hardcoded relative path with getBinaryPath(t) helper function to ensure tests work correctly in CI environment and when run from any directory.
1 parent bfe4935 commit d4b2152

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integration/cli_help_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func TestHelpFlag(t *testing.T) {
4040
for _, tt := range tests {
4141
t.Run(tt.name, func(t *testing.T) {
4242
// Get path to gitcommit binary
43-
binaryPath := "../../build/gitcommit"
43+
binaryPath := getBinaryPath(t)
4444

4545
// Run with help flag
4646
cmd := exec.Command(binaryPath, tt.flags...)

0 commit comments

Comments
 (0)