Make tests run faster by reducing timeouts
This commit is contained in:
@@ -16,12 +16,12 @@ class ExampleImpl(thread_capnp.Example.Server):
|
|||||||
"Implementation of the Example threading Cap'n Proto interface."
|
"Implementation of the Example threading Cap'n Proto interface."
|
||||||
|
|
||||||
async def subscribeStatus(self, subscriber, **kwargs):
|
async def subscribeStatus(self, subscriber, **kwargs):
|
||||||
await asyncio.sleep(1)
|
await asyncio.sleep(0.1)
|
||||||
await subscriber.status(True)
|
await subscriber.status(True)
|
||||||
await self.subscribeStatus(subscriber)
|
await self.subscribeStatus(subscriber)
|
||||||
|
|
||||||
async def longRunning(self, **kwargs):
|
async def longRunning(self, **kwargs):
|
||||||
await asyncio.sleep(1)
|
await asyncio.sleep(0.1)
|
||||||
|
|
||||||
|
|
||||||
async def new_connection(stream):
|
async def new_connection(stream):
|
||||||
|
|||||||
@@ -21,12 +21,12 @@ class ExampleImpl(thread_capnp.Example.Server):
|
|||||||
"Implementation of the Example threading Cap'n Proto interface."
|
"Implementation of the Example threading Cap'n Proto interface."
|
||||||
|
|
||||||
async def subscribeStatus(self, subscriber, **kwargs):
|
async def subscribeStatus(self, subscriber, **kwargs):
|
||||||
await asyncio.sleep(1)
|
await asyncio.sleep(0.1)
|
||||||
await subscriber.status(True)
|
await subscriber.status(True)
|
||||||
await self.subscribeStatus(subscriber)
|
await self.subscribeStatus(subscriber)
|
||||||
|
|
||||||
async def longRunning(self, **kwargs):
|
async def longRunning(self, **kwargs):
|
||||||
await asyncio.sleep(1)
|
await asyncio.sleep(0.1)
|
||||||
|
|
||||||
def alive(self, **kwargs):
|
def alive(self, **kwargs):
|
||||||
return True
|
return True
|
||||||
|
|||||||
Reference in New Issue
Block a user