]> git-server-git.apps.pok.os.sepia.ceph.com Git - s3-tests.git/commitdiff
modify the thread sleep time in lifecycle expiration test so that it can pr/168 168/head
authorZhang Shaowen <zhangshaowen@cmss.chinamobile.com>
Tue, 20 Jun 2017 08:32:24 +0000 (16:32 +0800)
committerZhang Shaowen <zhangshaowen@cmss.chinamobile.com>
Tue, 20 Jun 2017 08:32:24 +0000 (16:32 +0800)
pass on ceph master branch.

Signed-off-by: Zhang Shaowen <zhangshaowen@cmss.chinamobile.com>
s3tests/functional/test_s3.py

index ed87400be86540ab9f09f87fb72c55a285f23c4c..61ded610aa098faf557a507d9899e28431846ba5 100644 (file)
@@ -7499,13 +7499,13 @@ def test_lifecycle_expiration():
     # Get list of all keys
     init_keys = bucket.get_all_keys()
     # Wait for first expiration (plus fudge to handle the timer window)
-    time.sleep(35)
+    time.sleep(6)
     expire1_keys = bucket.get_all_keys()
     # Wait for next expiration cycle
-    time.sleep(15)
+    time.sleep(2)
     keep2_keys = bucket.get_all_keys()
     # Wait for final expiration cycle
-    time.sleep(25)
+    time.sleep(8)
     expire3_keys = bucket.get_all_keys()
 
     eq(len(init_keys), 6)