skip test unreliable on mac
This commit is contained in:
parent
9e87394fca
commit
fab7b5579c
1 changed files with 5 additions and 3 deletions
|
@ -1,7 +1,8 @@
|
||||||
|
import sys
|
||||||
import asyncio
|
import asyncio
|
||||||
import logging
|
import logging
|
||||||
|
import unittest
|
||||||
import multiprocessing as mp
|
import multiprocessing as mp
|
||||||
from unittest import skip
|
|
||||||
from concurrent.futures import ThreadPoolExecutor
|
from concurrent.futures import ThreadPoolExecutor
|
||||||
|
|
||||||
from lbry.testcase import AsyncioTestCase
|
from lbry.testcase import AsyncioTestCase
|
||||||
|
@ -91,9 +92,10 @@ class StreamControllerTestCase(AsyncioTestCase):
|
||||||
|
|
||||||
class TestEventQueuePublisher(AsyncioTestCase):
|
class TestEventQueuePublisher(AsyncioTestCase):
|
||||||
|
|
||||||
|
@unittest.skipIf("darwin" in sys.platform, "test is very unreliable on mac")
|
||||||
async def test_event_buffering_avoids_overloading_asyncio(self):
|
async def test_event_buffering_avoids_overloading_asyncio(self):
|
||||||
threads = 2
|
threads = 3
|
||||||
generate_events = 1000
|
generate_events = 3000
|
||||||
expected_event_count = (threads * generate_events)-1
|
expected_event_count = (threads * generate_events)-1
|
||||||
|
|
||||||
queue = mp.Queue()
|
queue = mp.Queue()
|
||||||
|
|
Loading…
Reference in a new issue