File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
services/web/server/tests/unit/with_dbs/01 Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 2828)
2929from simcore_service_webserver .application_settings import GarbageCollectorSettings
3030from simcore_service_webserver .db .models import UserRole
31- from tenacity import retry_if_exception_type , stop_after_attempt , wait_fixed
31+ from tenacity import (
32+ retry_if_exception_type ,
33+ stop_after_attempt ,
34+ stop_after_delay ,
35+ wait_fixed ,
36+ )
3237
3338
3439@pytest .fixture
@@ -174,7 +179,7 @@ async def test_create_api_key_with_expiration(
174179 async for attempt in tenacity .AsyncRetrying (
175180 wait = wait_fixed (1 ),
176181 retry = retry_if_exception_type (AssertionError ),
177- stop = stop_after_attempt ( 5 ),
182+ stop = stop_after_delay ( 5 * expiration_interval . seconds ),
178183 reraise = True ,
179184 ):
180185 with attempt :
You can’t perform that action at this time.
0 commit comments