Make tests run faster by reducing timeouts

This commit is contained in:
Lasse Blaauwbroek
2023-06-08 02:31:06 +02:00
parent af99e388fb
commit 854d910bee
2 changed files with 4 additions and 4 deletions

View File

@@ -16,12 +16,12 @@ class ExampleImpl(thread_capnp.Example.Server):
"Implementation of the Example threading Cap'n Proto interface."
async def subscribeStatus(self, subscriber, **kwargs):
await asyncio.sleep(1)
await asyncio.sleep(0.1)
await subscriber.status(True)
await self.subscribeStatus(subscriber)
async def longRunning(self, **kwargs):
await asyncio.sleep(1)
await asyncio.sleep(0.1)
async def new_connection(stream):

View File

@@ -21,12 +21,12 @@ class ExampleImpl(thread_capnp.Example.Server):
"Implementation of the Example threading Cap'n Proto interface."
async def subscribeStatus(self, subscriber, **kwargs):
await asyncio.sleep(1)
await asyncio.sleep(0.1)
await subscriber.status(True)
await self.subscribeStatus(subscriber)
async def longRunning(self, **kwargs):
await asyncio.sleep(1)
await asyncio.sleep(0.1)
def alive(self, **kwargs):
return True