Skip to content

Commit

Permalink
Fix zsh autocompletion failing tests (#36551)
Browse files Browse the repository at this point in the history
It looks like the output of the autocompletion script for zsh has
changed, hence the tests are failing. This commit fixes it.

The autocompletion is generated by an external
package (github.com/spf13/cobra), so this commit just updates the test
with the current output.
belimawr authored Sep 13, 2023
1 parent d4effa8 commit 12e703b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libbeat/tests/system/test_cmd_completion.py
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ def test_bash_completion(self):
def test_zsh_completion(self):
exit_code = self.run_beat(extra_args=["completion", "zsh"])
assert exit_code == 0
assert self.log_contains("#compdef _mockbeat mockbeat")
assert self.log_contains("compdef _mockbeat mockbeat")

def test_unknown_completion(self):
exit_code = self.run_beat(extra_args=["completion", "awesomeshell"])

0 comments on commit 12e703b

Please sign in to comment.