Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip flaky test on unix input #20942

Merged
merged 1 commit into from
Sep 3, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion filebeat/tests/system/test_unix.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
from filebeat import BaseTest
import os
import platform
import socket
import tempfile
import unittest
from filebeat import BaseTest

# AF_UNIX support in python isn't available until
# Python 3.9, see https://bugs.python.org/issue33408


@unittest.skipIf(not hasattr(socket, 'AF_UNIX'), "No Windows AF_UNIX support before Python 3.9")
@unittest.skipIf(platform.system() == 'Darwin', 'Flaky test: https://github.com/elastic/beats/issues/20941')
class Test(BaseTest):
"""
Test filebeat UNIX input
Expand Down