Skip to content

Commit

Permalink
wip: add sleep to test delay hipothesis
Browse files Browse the repository at this point in the history
Signed-off-by: Guilhem Barthés <[email protected]>
  • Loading branch information
guilhem-barthes committed Jul 17, 2024
1 parent bd8ba77 commit cbd710b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_permissions.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import time
from contextlib import nullcontext as does_not_raise

import pytest
Expand Down Expand Up @@ -169,6 +170,7 @@ def test_permissions(permissions_1, permissions_2, expected_permissions, factory
worker=workers[0],
)

time.sleep(2)
traintask = client_1.add_task(spec)
client_1.wait_task(traintask.key, raise_on_failure=True)

Expand Down Expand Up @@ -466,6 +468,7 @@ def test_permission_to_test_on_org_without_training(
)
traintask_1 = client_1.add_task(spec)

time.sleep(2)
# add testtask on org 2
with expectation:
spec = factory.create_predicttask(
Expand Down

0 comments on commit cbd710b

Please sign in to comment.