def METHOD_NAME(restapi_server, server_url, aiida_localhost):
    """Run AiiDA REST API threaded in a separate thread and perform many sequential requests.
    This test will fail, if database connections are not being properly closed by the end-point calls.
    """
    server = restapi_server()
    computer_id = aiida_localhost.uuid
    # Create a thread that will contain the running server,
    # since we do not wish to block the main thread
    server_thread = Thread(target=server.serve_forever)
    try:
        server_thread.start()
        for _ in range(NO_OF_REQUESTS):
            response = requests.get(f'{server_url}/computers/{computer_id}', timeout=10)
            assert response.status_code == 200
            try:
                response_json = response.json()
            except ValueError:
                pytest.fail(f'Could not turn response into JSON. Response: {response.raw}')
            else:
                assert 'data' in response_json
    except Exception as exc:  # pylint: disable=broad-except
        pytest.fail(f'Something went terribly wrong! Exception: {repr(exc)}')
    finally:
        server.shutdown()
        # Wait a total of 1 min (100 x 0.6 s) for the Thread to close/join, else fail
        for _ in range(100):
            if server_thread.is_alive():
                time.sleep(0.6)
            else:
                break
        else:
            pytest.fail('Thread did not close/join within 1 min after REST API server was called to shutdown')