Skip to content

Commit

Permalink
[Filebeat] Skip flaky windows tests
Browse files Browse the repository at this point in the history
`test_clean_inactive` (elastic#8102) and `test_clean_removed` (elastic#7690) have been flaky recently again on Windows. Skipping these test for Windows.
  • Loading branch information
ruflin committed Mar 29, 2019
1 parent 25ea083 commit 46e0b62
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions filebeat/tests/system/test_registrar.py
Original file line number Diff line number Diff line change
Expand Up @@ -773,6 +773,7 @@ def test_state_after_rotation_ignore_older(self):
assert self.get_registry_entry_by_path(os.path.abspath(testfile_path1))["offset"] == 9
assert self.get_registry_entry_by_path(os.path.abspath(testfile_path2))["offset"] == 8

@unittest.skipIf(os.name == 'nt', 'flaky test https://github.com/elastic/beats/issues/8102')
def test_clean_inactive(self):
"""
Checks that states are properly removed after clean_inactive
Expand Down Expand Up @@ -819,6 +820,7 @@ def test_clean_inactive(self):
# Make sure the last file in the registry is the correct one and has the correct offset
assert data[0]["offset"] == self.input_logs.size(file3)

@unittest.skipIf(os.name == 'nt', 'flaky test https://github.com/elastic/beats/issues/7690')
def test_clean_removed(self):
"""
Checks that files which were removed, the state is removed
Expand Down

0 comments on commit 46e0b62

Please sign in to comment.