Minor change to sliding deadline test

This commit is contained in:
Mattia Giambirtone 2023-05-16 00:11:31 +02:00 committed by nocturn9x
parent 1947b9ddd4
commit f10796ac53
Signed by: nocturn9x
GPG Key ID: 8270F9F467971E59
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ import structio
async def main(n):
print(f"[main] Starting sliding timer with timeout {n}")
i = structio.clock()
with structio.skip_after(n - 1) as scope:
with structio.skip_after(2) as scope:
while n:
# This looks weird, but it allows us to
# handle floating point values (basically