Comment 3 for bug 1482722

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to aodh (master)

Reviewed: https://review.openstack.org/210538
Committed: https://git.openstack.org/cgit/openstack/aodh/commit/?id=d4f24e1996215d754944487b18035f1eacc0fc62
Submitter: Jenkins
Branch: master

commit d4f24e1996215d754944487b18035f1eacc0fc62
Author: Chris Dent <email address hidden>
Date: Fri Aug 7 17:03:52 2015 +0000

    Make ConnectionRetryTest more reliable

    The previous test relied on mocks of retrying.time.sleep. This is
    the same sleep as time.sleep so there's a chance, if eventlet is in
    context, that something else can call that.

    So instead the test now checks to see how many times should_reject
    is called. This is the same as the max retries that will be
    attempted.

    Also the retry wait time has been set to something very small so the
    test doesn't hang around sleeping uselessly.

    Change-Id: Ib85fff55588f7183d4e27a8a4769f647aeaa0ce3
    Closes-Bug: #1482722