deb-ceilometer/ceilometer/tests
Chris Dent 00aa6cec3e 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, making test runs
faster.

Change-Id: Ib15d4d6f8dd23ba534d58005da5dc64aad9e0e90
Closes-Bug: #1482722
2015-08-10 09:57:57 +01:00
..
functional Merge "Cast Int64 values to float" 2015-08-07 17:20:03 +00:00
integration integration: use the right user in gate 2015-08-06 08:31:54 +00:00
unit Make ConnectionRetryTest more reliable 2015-08-10 09:57:57 +01:00
__init__.py Skeleton for API server 2012-07-27 10:34:36 -04:00
base.py monkey_patch thread in tests 2015-07-14 18:58:33 +00:00
constants.py Correct alarm timestamp field in unittest code 2014-11-07 11:02:39 +08:00
db.py Close and dispose test database setup connections 2015-07-23 16:14:57 +00:00
mocks.py [HBase] Improves speed of unit tests on real HBase backend 2014-09-24 15:08:36 +04:00
pipeline_base.py Drop out-of-time-sequence rate of change samples 2015-07-30 07:52:56 +00:00