Skip to content

Commit

Permalink
Fix the missing python tests
Browse files Browse the repository at this point in the history
  • Loading branch information
belimawr committed May 13, 2024
1 parent bd10c59 commit 10336f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions filebeat/tests/system/test_reload_inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,9 @@ def test_start_stop_replace(self):
self.wait_until(lambda: self.output_lines() == 1)

# Remove input
with open(self.working_dir + "/configs/input.yml", 'w') as f:
f.write("")
# Remove input by moving the file
# we keep it around to help debugging
os.rename(self.working_dir + "/configs/input.yml", self.working_dir + "/configs/input.yml.disabled")

# Wait until input is stopped
self.wait_until(
Expand Down
6 changes: 3 additions & 3 deletions filebeat/tests/system/test_reload_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ def test_start_stop(self):
self.wait_until(lambda: self.output_lines() == 1, max_timeout=10)
print(self.output_lines())

# Remove input
with open(self.working_dir + "/configs/system.yml", 'w') as f:
f.write("")
# Remove input by moving the file
# we keep it around to help debugging
os.rename(self.working_dir + "/configs/input.yml", self.working_dir + "/configs/input.yml.disabled")

# Wait until input is stopped
self.wait_until(
Expand Down

0 comments on commit 10336f0

Please sign in to comment.