Skip to content

Commit

Permalink
1 sec is probably enough
Browse files Browse the repository at this point in the history
  • Loading branch information
baszoetekouw committed Jan 22, 2024
1 parent 37f0322 commit 6561fd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/test/cron/test_scim_sweep_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class TestScimSweepServices(AbstractTest):
def test_schedule_sweep(self):
# wait to make sure time has passed since initialization;
# otherwise time checks in scim run check will fail
sleep(2)
sleep(1)

remote_groups = json.loads(read_file("test/scim/sweep/remote_groups_unchanged.json"))
remote_users = json.loads(read_file("test/scim/sweep/remote_users_unchanged.json"))
Expand Down Expand Up @@ -45,7 +45,7 @@ def test_schedule_sweep(self):
def test_schedule_sweep_fail(self):
# wait to make sure time has passed since initialization;
# otherwise time checks in scim run check will fail
sleep(2)
sleep(1)

with responses.RequestsMock(assert_all_requests_are_fired=False) as rsps:
rsps.add(responses.GET, "http://localhost:8080/api/scim_mock/Users", status=503, body="Server unavailable")
Expand Down

0 comments on commit 6561fd7

Please sign in to comment.