diff --git a/filebeat/tests/system/test_reload_inputs.py b/filebeat/tests/system/test_reload_inputs.py index 36c5b2eeedd2..bd1e19408942 100644 --- a/filebeat/tests/system/test_reload_inputs.py +++ b/filebeat/tests/system/test_reload_inputs.py @@ -105,9 +105,9 @@ def test_start_stop(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(