Skip to content

Commit

Permalink
optimize ut
Browse files Browse the repository at this point in the history
  • Loading branch information
wujinhu committed Nov 8, 2017
1 parent 8f10b62 commit 7601f4d
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions tests/test_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,6 @@ def test_restore_object(self):
key = 'a.txt'
bucket.put_object(key, 'content')
self.assertEqual(202, bucket.restore_object(key).status)
while True:
# do we need this test?
try:
self.assertEqual(200, bucket.restore_object(key).status)
self.assertEqual('content', bucket.get_object(key).read())
break
except:
time.sleep(1)

bucket.delete_object(key)
bucket.delete_bucket()

Expand Down

0 comments on commit 7601f4d

Please sign in to comment.