Timeout on test for async document decryption
The test should run very quickly:
$ time python setup.py test -m leap.soledad.common.tests.test_encdecpool.TestSyncDecrypterPool.test_insert_received_doc_many running trial running egg_info writing pbr to src/leap.soledad.common.egg-info/pbr.json writing requirements to src/leap.soledad.common.egg-info/requires.txt writing src/leap.soledad.common.egg-info/PKG-INFO writing namespace_packages to src/leap.soledad.common.egg-info/namespace_packages.txt writing top-level names to src/leap.soledad.common.egg-info/top_level.txt writing dependency_links to src/leap.soledad.common.egg-info/dependency_links.txt reading manifest file 'src/leap.soledad.common.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching 'CHANGELOG' writing manifest file 'src/leap.soledad.common.egg-info/SOURCES.txt' running build_ext leap.soledad.common.tests.test_encdecpool TestSyncDecrypterPool test_insert_received_doc_many ... [OK] ------------------------------------------------------------------------------- Ran 1 tests in 4.007s PASSED (successes=1) real 0m6.095s user 0m2.060s sys 0m0.508s
The problem is I had it failed with a timeout once:
=============================================================================== [ERROR] Traceback (most recent call last): Failure: twisted.web._newclient.ResponseNeverReceived: [>] leap.soledad.common.tests.test_timeout.InterruptableSyncTestCase.test_interruptable_sync ===============================================================================
I don't know what may cause it, but it may be the cause of a sync freeze.
Ideas:
- Run the test many times, and check if it is non-deterministically reproducible.
- Find out which part is causing the freeze.
(from redmine: created on 2015-08-18, closed on 2015-08-19)