You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
================================== FAILURES ===================================
____________________________ Test.test_start_stop _____________________________
self = <test_reload_inputs.Test testMethod=test_start_stop>
def test_start_stop(self):
"""
Test basic input start and stop
"""
self.render_config_template(
reload=True,
reload_path=self.working_dir + "/configs/*.yml",
inputs=False,
)
proc = self.start_beat()
os.mkdir(self.working_dir + "/logs/")
logfile = self.working_dir + "/logs/test.log"
os.mkdir(self.working_dir + "/configs/")
with open(self.working_dir + "/configs/input.yml", 'w') as f:
f.write(inputConfigTemplate.format(self.working_dir + "/logs/*"))
with open(logfile, 'w') as f:
f.write("Hello world\n")
self.wait_until(lambda: self.output_lines() == 1)
# 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(
lambda: self.log_contains("Stopping runner:"),
max_timeout=15)
with open(logfile, 'a') as f:
f.write("Hello world\n")
# Wait to give a change to pick up the new line (it shouldn't)
time.sleep(1)
proc.check_kill_and_wait()
> assert self.output_lines() == 1
E assert 2 == 1
E + where 2 = <bound method TestCase.output_lines of <test_reload_inputs.Test testMethod=test_start_stop>>()
E + where <bound method TestCase.output_lines of <test_reload_inputs.Test testMethod=test_start_stop>> = <test_reload_inputs.Test testMethod=test_start_stop>.output_lines
The text was updated successfully, but these errors were encountered:
Flaky Test
beats/filebeat/tests/system/test_reload_modules.py
Lines 119 to 163 in f411b06
Artifact Link:Since
https://buildkite.com/elastic/filebeat/builds/6540https://buildkite.com/elastic/filebeat/builds/6533#018fa687-8ed2-4c33-9f1d-406fdacc0a77 Test.test_start_stop has been failing on different versions of Windows, variously 2016, 2019, 2022 and 10.https://buildkite.com/elastic?filter=beats
Stack Trace
https://buildkite.com/elastic/filebeat/builds/6615
The text was updated successfully, but these errors were encountered: