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

Test failure - test_transactions.TestTransactionsConvenientAPI mock timer prose tests

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.9
    • Tests
    • None

    Description

      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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: