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

Another unstable VCR test - test_record_success_with_ttl[new] #418

@yurishkuro

Description

@yurishkuro

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions