Skip to content

Commit

Permalink
RSC15f tests, try three times before timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavid committed Jan 28, 2019
1 parent 4f12e52 commit 22f35f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/ably/resthttp_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def test_no_host_fallback_nor_retries_if_custom_host(self):

# RSC15f
def test_cached_fallback(self):
timeout = 100
timeout = 1500
ably = RestSetup.get_ably_rest(fallback_hosts_use_default=True, fallback_retry_timeout=timeout)
host = ably.options.get_rest_host()

Expand All @@ -115,6 +115,8 @@ def side_effect(self, prepped, *args, **kwargs):

# The cached host is used: no error
ably.time()
ably.time()
ably.time()
assert state['errors'] == 1

# The cached host has expired, we've an error again
Expand Down

0 comments on commit 22f35f7

Please sign in to comment.