Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-1772

Test failure - test_transactions.TestTransactionsConvenientAPI mock timer prose tests

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.9
    • Affects Version/s: None
    • Component/s: Tests
    • None

      Looks like the mock timer tests I just added in PYTHON-1671 are flakey:

       [2019/03/07 13:55:20.972] ======================================================================
       [2019/03/07 13:55:20.972] FAIL [0.125s]: test_callback_not_retried_after_commit_timeout (test_transactions.TestTransactionsConvenientAPI)
       [2019/03/07 13:55:20.972] ----------------------------------------------------------------------
       [2019/03/07 13:55:20.972] Traceback (most recent call last):
       [2019/03/07 13:55:20.972]   File "C:\data\mci\d23971e56a7ba5e245ef07e072cbc059\src\test\__init__.py", line 410, in wrap
       [2019/03/07 13:55:20.972]     return f(*args, **kwargs)
       [2019/03/07 13:55:20.972]   File "C:\data\mci\d23971e56a7ba5e245ef07e072cbc059\src\test\test_transactions.py", line 606, in test_callback_not_retried_after_commit_timeout
       [2019/03/07 13:55:20.972]     s.with_transaction(callback)
       [2019/03/07 13:55:20.972] AssertionError: OperationFailure not raised
       [2019/03/07 13:55:20.972] ======================================================================
       [2019/03/07 13:55:20.972] FAIL [0.111s]: test_callback_not_retried_after_timeout (test_transactions.TestTransactionsConvenientAPI)
       [2019/03/07 13:55:20.972] ----------------------------------------------------------------------
       [2019/03/07 13:55:20.972] Traceback (most recent call last):
       [2019/03/07 13:55:20.972]   File "C:\data\mci\d23971e56a7ba5e245ef07e072cbc059\src\test\__init__.py", line 410, in wrap
       [2019/03/07 13:55:20.972]     return f(*args, **kwargs)
       [2019/03/07 13:55:20.972]   File "C:\data\mci\d23971e56a7ba5e245ef07e072cbc059\src\test\test_transactions.py", line 580, in test_callback_not_retried_after_timeout
       [2019/03/07 13:55:20.972]     ['insert', 'abortTransaction'])
       [2019/03/07 13:55:20.972] AssertionError: Lists differ: ['ins[19 chars]tion', 'insert', 'abortTransaction', 'insert',[15 chars]ion'] != ['ins[19 chars]tion']
       [2019/03/07 13:55:20.972] First list contains 4 additional elements.
       [2019/03/07 13:55:20.972] First extra element 2:
       [2019/03/07 13:55:20.972] 'insert'
       [2019/03/07 13:55:20.972] - ['insert',
       [2019/03/07 13:55:20.972] -  'abortTransaction',
       [2019/03/07 13:55:20.972] -  'insert',
       [2019/03/07 13:55:20.972] -  'abortTransaction',
       [2019/03/07 13:55:20.972] -  'insert',
       [2019/03/07 13:55:20.972] -  'abortTransaction']
       [2019/03/07 13:55:20.972] + ['insert', 'abortTransaction']
       [2019/03/07 13:55:20.972] ? ++++++++++
      

      https://evergreen.mongodb.com/task/mongo_python_driver_tests_windows_vs2015_python_version_27plus__auth_ssl~auth_ssl_windows_vs2015_python_version~3.6_test_4.0_replica_set_82131c444858272b3a146b5202912f51dad4a2ae_19_03_07_21_37_13

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: