Skip to content

Commit

Permalink
Fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrattli committed Mar 5, 2022
1 parent 095980f commit 310394f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_scheduler/test_threadpoolscheduler.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
import os
import threading
import unittest
from datetime import timedelta
from time import sleep

import pytest

from reactivex.internal.basic import default_now
from reactivex.scheduler import ThreadPoolScheduler

thread_pool_scheduler = ThreadPoolScheduler()

CI = os.getenv("CI") is not None


class TestThreadPoolScheduler(unittest.TestCase):
@pytest.mark.skipif(CI, reason="Flaky test in GitHub Actions")
def test_threadpool_now(self):
scheduler = ThreadPoolScheduler()
diff = scheduler.now - default_now()
Expand Down

0 comments on commit 310394f

Please sign in to comment.