Skip to content

Commit

Permalink
Test with lowewr interval, possibly change for the future.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanklee86 committed Sep 29, 2022
1 parent 1e04b09 commit 4c0e8f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/unit_tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,8 +515,8 @@ def test_uc_custom_scheduler():
unleash_client = UnleashClient(
URL,
APP_NAME,
refresh_interval=REFRESH_INTERVAL,
metrics_interval=METRICS_INTERVAL,
refresh_interval=5,
metrics_interval=10,
scheduler=custom_scheduler,
scheduler_executor='hamster_executor'
)
Expand All @@ -529,9 +529,9 @@ def test_uc_custom_scheduler():

# Simulate caching
responses.add(responses.GET, URL + FEATURES_URL, json={}, status=304, headers={'etag': ETAG_VALUE})
time.sleep(16)
time.sleep(6)

# Simulate server provisioning change
responses.add(responses.GET, URL + FEATURES_URL, json=MOCK_ALL_FEATURES, status=200, headers={'etag': 'W/somethingelse'})
time.sleep(30)
time.sleep(6)
assert len(unleash_client.features) >= 9

0 comments on commit 4c0e8f5

Please sign in to comment.