summaryrefslogtreecommitdiffstats
path: root/nova/exception.py
diff options
context:
space:
mode:
authorClark Boylan <clark.boylan@gmail.com>2012-12-12 19:25:50 -0800
committerClark Boylan <clark.boylan@gmail.com>2012-12-13 10:19:02 -0800
commit2ce5fee0d6cc3244db11670379fd7938119919ed (patch)
tree2e7914ddde440fbc5e12aa3440f81d519af089d7 /nova/exception.py
parentbe12f8b785f8bc95176128f68ac80af64789c1f7 (diff)
downloadnova-2ce5fee0d6cc3244db11670379fd7938119919ed.tar.gz
nova-2ce5fee0d6cc3244db11670379fd7938119919ed.tar.xz
nova-2ce5fee0d6cc3244db11670379fd7938119919ed.zip
Remove sleep in test_consoleauth.
test_consoleauth:ConsoleauthTestCase.test_tokens_expire called time.sleep(1.1) in order to test that tokens with a TTL of 1 second expire after one second. Problem is time.sleep() may return before the entire sleep period is complete. Remove the sleep and instead use Oslo's timeutils to override the time and advance it by one second to check that expired tokens do expire. Part of blueprint grizzly-testtools Change-Id: Iae0e678fb12a76757523dc7dbccb4da98cef85e6
Diffstat (limited to 'nova/exception.py')
0 files changed, 0 insertions, 0 deletions