Skip to content

Commit

Permalink
Reduce test timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed May 14, 2017
1 parent 69cb197 commit 13681f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -1232,9 +1232,9 @@ def test_not_expired_ttl(self):

@asyncio.coroutine
def test_expired_ttl(self, loop):
dns_cache_table = _DNSCacheTable(ttl=0.1)
dns_cache_table = _DNSCacheTable(ttl=0.01)
dns_cache_table.add('localhost', ['127.0.0.1'])
yield from asyncio.sleep(0.1, loop=loop)
yield from asyncio.sleep(0.01, loop=loop)
assert dns_cache_table.expired('localhost')

def test_next_addrs(self, dns_cache_table):
Expand Down

0 comments on commit 13681f8

Please sign in to comment.