[
https://issues.apache.org/jira/browse/THRIFT-2657?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14197536#comment-14197536
]
Hudson commented on THRIFT-2657:
--------------------------------
SUCCESS: Integrated in Thrift #1331 (See
[https://builds.apache.org/job/Thrift/1331/])
THRIFT-2657 Fix spurious test failures in py:twisted (roger: rev
79c3f4a7311e91dbd3edd85a30c54b2ccce57781)
* test/py.twisted/test_suite.py
> py.twisted/test_suite.py:ThriftTestCase.testOneway spuriously fails on loaded
> machines
> ---------------------------------------------------------------------------------------
>
> Key: THRIFT-2657
> URL: https://issues.apache.org/jira/browse/THRIFT-2657
> Project: Thrift
> Issue Type: Bug
> Reporter: James Broadhead
> Assignee: Roger Meier
> Priority: Minor
> Fix For: 0.9.2
>
>
> py.twisted/test_suite.py:ThriftTestCase.testOneway
> relies on a call to
> client.testOneway(2)
> taking less than
> 2.005 seconds
> (2.004 succeeds, because round(2 - 2.004, 2) == 0)
> On a loaded (or slow) machine, this isn't guaranteed.
> Suggest that the sensitivity of this test be significantly relaxed, unless
> this is a test measuring performance (which I do not believe it to be)
>
> {code}
> ===============================================================================
> [FAIL]
> Traceback (most recent call last):
> File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line
> 1070, in _inlineCallbacks
> result = g.send(result)
> File
> "/home/hangfire/checkouts/github/thrift-clean/test/py.twisted/test_suite.py",
> line 184, in testOneway
> self.assertAlmostEquals(seconds, (end - start), places=2)
> File "/usr/lib64/python2.7/site-packages/twisted/trial/_synctest.py", line
> 472, in assertAlmostEqual
> % (first, second, places))
> twisted.trial.unittest.FailTest: 2 != 2.0055909156799316 within 2 places
> test_suite.ThriftTestCase.testOneway
> -------------------------------------------------------------------------------
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)