• 
      

    Fix the occasional failed test in extensions.

    Review Request #7438 — Created June 18, 2015 and submitted

    Information

    Djblets
    release-0.8.x
    fd0db46...

    Reviewers

    We had an extension-related test that would try to simulate two threads
    trying to install media files at the same time, to ensure our locks were
    working. Sometimes, this would fail, particularly if the computer was
    under heavy load.
    
    We now have each thread sleep for a different amount of time before
    attemping the lock. The result is that the lock gets hit consistently.

    Ran the tests a couple dozen times. Couldn't reproduce the failure. I was
    able to hit it more consistently than that before.

    reviewbot
    1. Tool: Pyflakes
      Processed Files:
          djblets/extensions/tests.py
      
      
      
      Tool: PEP8 Style Checker
      Processed Files:
          djblets/extensions/tests.py
      
      
    2. 
        
    brennie
    1. Ship It!
    2. 
        
    david
    1. Ship It!
    2. 
        
    chipx86
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-0.8.x (f78eb71)