From 6106aa7c568aa2bc57b6eec6c42dc53b11e28587 Mon Sep 17 00:00:00 2001 From: Steffen Siering Date: Thu, 26 Nov 2020 15:01:01 +0100 Subject: [PATCH] Skip flaky winlogbeat test on Windows-7 (#22754) --- winlogbeat/tests/system/test_wineventlog.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/winlogbeat/tests/system/test_wineventlog.py b/winlogbeat/tests/system/test_wineventlog.py index 363e90edbd2..8b06841ff70 100644 --- a/winlogbeat/tests/system/test_wineventlog.py +++ b/winlogbeat/tests/system/test_wineventlog.py @@ -1,5 +1,6 @@ import codecs import os +import platform import sys import time import unittest @@ -250,6 +251,8 @@ def test_query_level_multiple(self): self.assertEqual(evts[0]["log.level"], "error") self.assertEqual(evts[1]["log.level"], "warning") + @unittest.skipIf(platform.platform().startswith("Windows-7"), + "Flaky test: https://github.com/elastic/beats/issues/22753") def test_query_ignore_older(self): """ wineventlog - Query by time (ignore_older than 2s)