Skip to content

Commit bc5be97

Browse files
author
elchananarb
committed
Update pre_commit_test.go
1 parent 4c1f692 commit bc5be97

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/integration/pre_commit_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ func TestHooksPreCommitUpdatePreCommitHook(t *testing.T) {
5959
_ = executeCmdNilAssertion(t, "Installing pre-commit hook", "hooks", "pre-commit", "secrets-install-git-hook")
6060

6161
// Update pre-commit hook
62-
output := executeCmdNilAssertion(t, "Updating pre-commit hook", "hooks", "pre-commit", "secrets-update-git-hook")
63-
assert.Contains(t, output, "updated successfully", "Hook should update successfully")
62+
err := executeCmdNilAssertion(t, "Updating pre-commit hook", "hooks", "pre-commit", "secrets-update-git-hook")
63+
assert.NoError(t, err, "Hook should update successfully")
6464
}
6565

6666
// Helper functions

0 commit comments

Comments
 (0)