Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Another unstable VCR test - test_record_success_with_ttl[new] #418

Open
yurishkuro opened this issue Jul 7, 2016 · 0 comments
Open

Another unstable VCR test - test_record_success_with_ttl[new] #418

yurishkuro opened this issue Jul 7, 2016 · 0 comments

Comments

@yurishkuro
Copy link
Contributor

https://travis-ci.org/uber/tchannel-python/jobs/143154308

=================================== FAILURES ===================================
______________________ test_record_success_with_ttl[new] _______________________
tmpdir = local('/tmp/pytest-of-travis/pytest-0/test_record_success_with_ttl_n0')
mock_server = <tests.mock_server.MockServer object at 0x000000000daf51a0>
call = <function new_f at 0x000000000dad4188>
get_body = <function new_get_body at 0x000000000dad4200>
    @pytest.mark.gen_test
    def test_record_success_with_ttl(tmpdir, mock_server, call, get_body):
        path = tmpdir.join('data.yaml')

        mock_server.expect_call('hello').and_write('world', delay=0.1).once()

        with vcr.use_cassette(str(path)) as cass:
            response = yield call('hello', 'world', service='hello_service',
                                  ttl=0.2)
            assert 'world' == (yield get_body(response))

        assert cass.play_count == 0
        assert path.check(file=True)

        with vcr.use_cassette(str(path)) as cass:
            response = yield call('hello', 'world', service='hello_service',
>                                 ttl=0.05)  # shouldn't time out
tests/testing/vcr/integration/test_vcr.py:303: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/pypy-tornado42/site-packages/tornado/gen.py:1008: in run
    value = future.result()
.tox/pypy-tornado42/site-packages/tornado/concurrent.py:232: in result
    raise_exc_info(self._exc_info)
.tox/pypy-tornado42/site-packages/tornado/gen.py:1014: in run
    yielded = self.gen.throw(*exc_info)
tchannel/tchannel.py:218: in call
    ttl=timeout,
.tox/pypy-tornado42/site-packages/tornado/gen.py:1008: in run
    value = future.result()
.tox/pypy-tornado42/site-packages/tornado/concurrent.py:232: in result
    raise_exc_info(self._exc_info)
.tox/pypy-tornado42/site-packages/tornado/gen.py:1014: in run
    yielded = self.gen.throw(*exc_info)
tchannel/testing/vcr/patch.py:110: in send
    vcr_response = yield vcr_response_future
.tox/pypy-tornado42/site-packages/tornado/gen.py:1008: in run
    value = future.result()
.tox/pypy-tornado42/site-packages/tornado/concurrent.py:232: in result
    raise_exc_info(self._exc_info)
.tox/pypy-tornado42/site-packages/tornado/gen.py:1014: in run
    yielded = self.gen.throw(*exc_info)
tchannel/schemes/thrift.py:158: in __call__
    routing_delegate=routing_delegate,
.tox/pypy-tornado42/site-packages/tornado/gen.py:1008: in run
    value = future.result()
.tox/pypy-tornado42/site-packages/tornado/concurrent.py:232: in result
    raise_exc_info(self._exc_info)
.tox/pypy-tornado42/site-packages/tornado/gen.py:1014: in run
    yielded = self.gen.throw(*exc_info)
tchannel/tchannel.py:218: in call
    ttl=timeout,
.tox/pypy-tornado42/site-packages/tornado/gen.py:1008: in run
    value = future.result()
.tox/pypy-tornado42/site-packages/tornado/concurrent.py:232: in result
    raise_exc_info(self._exc_info)
.tox/pypy-tornado42/site-packages/tornado/gen.py:1014: in run
    yielded = self.gen.throw(*exc_info)
tchannel/tornado/peer.py:411: in send
    request, peer, retry_limit, connection
.tox/pypy-tornado42/site-packages/tornado/gen.py:1008: in run
    value = future.result()
.tox/pypy-tornado42/site-packages/tornado/concurrent.py:232: in result
    raise_exc_info(self._exc_info)
.tox/pypy-tornado42/site-packages/tornado/gen.py:1017: in run
    yielded = self.gen.send(value)
tchannel/tornado/peer.py:461: in send_with_retry
    response = yield self._send(connection, request)
.tox/pypy-tornado42/site-packages/tornado/gen.py:1008: in run
    value = future.result()
.tox/pypy-tornado42/site-packages/tornado/concurrent.py:232: in result
    raise_exc_info(self._exc_info)
.tox/pypy-tornado42/site-packages/tornado/gen.py:1014: in run
    yielded = self.gen.throw(*exc_info)
tchannel/tornado/peer.py:431: in _send
    response = yield response_future
.tox/pypy-tornado42/site-packages/tornado/gen.py:1008: in run
    value = future.result()
.tox/pypy-tornado42/site-packages/tornado/concurrent.py:232: in result
    raise_exc_info(self._exc_info)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
exc_info = (<class 'tchannel.errors.TimeoutError'>, TimeoutError(None,), None)
>   ???
E   TimeoutError: None
<string>:3: TimeoutError
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant