From 854d910bee40c0447de91ff98fb37ed43a52ae63 Mon Sep 17 00:00:00 2001 From: Lasse Blaauwbroek Date: Thu, 8 Jun 2023 02:31:06 +0200 Subject: [PATCH] Make tests run faster by reducing timeouts --- examples/async_server.py | 4 ++-- examples/async_ssl_server.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/async_server.py b/examples/async_server.py index 0fb54be..3230bd3 100755 --- a/examples/async_server.py +++ b/examples/async_server.py @@ -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): diff --git a/examples/async_ssl_server.py b/examples/async_ssl_server.py index 3d84e2d..2c66722 100755 --- a/examples/async_ssl_server.py +++ b/examples/async_ssl_server.py @@ -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