mirror of
https://github.com/ceph/s3-tests.git
synced 2024-11-21 11:51:06 +00:00
fixing intermittent lifecycle_expiration_header failures(2!=1) beacause of datetime.now() on different timezone
Signed-off-by: Hemanth Sai Maheswarla <hemanthsaimaheswarla@Hemanths-MacBook-Pro.local>
This commit is contained in:
parent
d141ee87b4
commit
8f67b0e4f8
1 changed files with 2 additions and 2 deletions
|
@ -9659,7 +9659,7 @@ def test_lifecycle_expiration_header_put():
|
|||
bucket_name = get_new_bucket()
|
||||
client = get_client()
|
||||
|
||||
now = datetime.datetime.now(None)
|
||||
now = datetime.datetime.utcnow()
|
||||
response = setup_lifecycle_expiration(
|
||||
client, bucket_name, 'rule1', 1, 'days1/')
|
||||
eq(check_lifecycle_expiration_header(response, now, 'rule1', 1), True)
|
||||
|
@ -9673,7 +9673,7 @@ def test_lifecycle_expiration_header_head():
|
|||
bucket_name = get_new_bucket()
|
||||
client = get_client()
|
||||
|
||||
now = datetime.datetime.now(None)
|
||||
now = datetime.datetime.utcnow()
|
||||
response = setup_lifecycle_expiration(
|
||||
client, bucket_name, 'rule1', 1, 'days1/')
|
||||
|
||||
|
|
Loading…
Reference in a new issue