Skip to content

Commit

Permalink
make it work under windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ph committed Nov 26, 2018
1 parent 6e987e4 commit 253ff2a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions filebeat/tests/system/test_harvester.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import time
import base64
import io
import re
import unittest
from parameterized import parameterized

Expand Down Expand Up @@ -850,7 +851,8 @@ def test_debug_reader(self):

filebeat = self.start_beat()

self.wait_until(lambda: self.log_contains("Matching null byte found at offset 13"),
max_timeout=5)
# 13 on unix, 14 on windows.
self.wait_until(lambda: self.log_contains(re.compile(
'Matching null byte found at offset (13|14)')), max_timeout=5)

filebeat.check_kill_and_wait()

0 comments on commit 253ff2a

Please sign in to comment.