Skip to content

Commit c1382fd

Browse files
committed
Increase sleep time to see if that changes benchmarks.
1 parent ca0b637 commit c1382fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/benchmarks/test_relationship_loading.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ async def parents(info: Info) -> List[StrawberryParent]:
104104
mocker.patch.object(orm.Session, "_execute_internal", autospec=True)
105105

106106
def sleep_then_execute(self, *args, **kwargs):
107-
time.sleep(0.01)
107+
time.sleep(0.1)
108108
return old_execute_internal(self, *args, **kwargs)
109109

110110
orm.Session._execute_internal.side_effect = sleep_then_execute
@@ -174,7 +174,7 @@ async def parents(info: Info) -> List[StrawberryParent]:
174174
mocker.patch.object(AsyncSession, "scalars", autospec=True)
175175

176176
async def sleep_then_scalars(self, *args, **kwargs):
177-
await asyncio.sleep(0.01)
177+
await asyncio.sleep(0.1)
178178
return await old_scalars(self, *args, **kwargs)
179179

180180
mock = AsyncMock()

0 commit comments

Comments
 (0)