'Test to ensure that connection id fetching will block when max_id is reached/
In previous versions of the driver this test will cause a
NoHostAvailable exception to be thrown, when the max_id is restricted
@since 3.3
@jira_ticket PYTHON-514
@expected_result When many requests are run on a single node connection acquisition should block
until connection is available or the request times out.
@test_category connection timeout'

def test_in_flight_timeout(self):

    futures = []
    query = 'SELECT    *    FROM    system.local'
    for i in range(100):
        futures.append(self.session.execute_async(query))
    for future in futures:
        future.result()
