From 8b261ae8aac9a4f62139cd29470ee5836cee7dea Mon Sep 17 00:00:00 2001 From: retoor Date: Thu, 24 Jul 2025 04:13:05 +0200 Subject: [PATCH] Added tests. --- ads.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ads.py b/ads.py index 371fd4d..3b35219 100644 --- a/ads.py +++ b/ads.py @@ -286,7 +286,7 @@ class TestAsyncDataSet(unittest.IsolatedAsyncioTestCase): async def test_upsert_update(self): uid = await self.connector.upsert("people", {"age": 22}, {"name": "Alice"}) - await asyncio.sleep(2) + await asyncio.sleep(1.1) uid_same = await self.connector.upsert("people", {"age": 23}, {"name": "Alice"}) self.assertEqual(uid_same, uid) rec = await self.connector.get("people", {"uid": uid}) @@ -359,7 +359,7 @@ class TestAsyncDataSet(unittest.IsolatedAsyncioTestCase): async def test_update(self): await self.connector.insert("people", {"name": "John Doe", "age": 30}) - await asyncio.sleep(2) + await asyncio.sleep(1.1) await self.connector.update("people", {"age": 31}, {"name": "John Doe"}) rec = await self.connector.get("people", {"name": "John Doe"}) self.assertEqual(rec["age"], 31) @@ -375,7 +375,7 @@ class TestAsyncDataSet(unittest.IsolatedAsyncioTestCase): async def test_upsert_update(self): uid = await self.connector.upsert("people", {"age": 22}, {"name": "Alice"}) - await asyncio.sleep(2) + await asyncio.sleep(1.1) uid_same = await self.connector.upsert("people", {"age": 23}, {"name": "Alice"}) self.assertEqual(uid_same, uid) rec = await self.connector.get("people", {"uid": uid})