Skip to content

Commit 4f7284f

Browse files
committed
test(unit/puller): Disable stream mode test in CI
The actor test with stream mode enabled is very flaky when run on CI. As this problem rarely occurs locally, only disable the test when a CI environment is detected.
1 parent 1234106 commit 4f7284f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/unit/puller/test_puller_actor.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,14 @@
2828
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2929

3030
import logging
31+
import os
3132
from datetime import datetime, timezone
3233

34+
import pytest
35+
36+
from powerapi.actor.message import StartMessage, ErrorMessage, OKMessage
3337
from powerapi.database import ReadableDatabase
3438
from powerapi.filter import Filter
35-
from powerapi.actor.message import StartMessage, ErrorMessage, OKMessage
3639
from powerapi.puller import PullerActor
3740
from powerapi.report import Report
3841
from tests.utils.db import SilentFakeDB
@@ -128,6 +131,7 @@ def test_puller_with_multiple_reports_filter():
128131
assert dispatcher_catch_all.get_num_received_data() == num_reports
129132

130133

134+
@pytest.mark.skipif(os.getenv("CI") == "true", reason="This test is too flaky to be run in CI")
131135
def test_puller_with_stream_mode():
132136
"""
133137
Test that the puller send reports to the dispatcher and stay alive waiting for new reports.

0 commit comments

Comments
 (0)