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.
Reviewed: https:/ /review. openstack. org/210538 /git.openstack. org/cgit/ openstack/ aodh/commit/ ?id=d4f24e19962 15d754944487b18 035f1eacc0fc62
Committed: https:/
Submitter: Jenkins
Branch: master
commit d4f24e1996215d7 54944487b18035f 1eacc0fc62
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: Ib85fff55588f71 83d4e27a8a4769f 647aeaa0ce3
Closes-Bug: #1482722