Skip to content

Commit e734bd0

Browse files
authored
tests: Add delay for fix test_s3_mode_compliance (#1136)
2 parents ce70958 + afb4a06 commit e734bd0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pytest_tests/tests/s3/test_s3_locking.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ def test_s3_mode_compliance(self):
103103
"RetainUntilDate": date_obj,
104104
}
105105
s3_object.put_object_retention(self.s3_client, bucket, file_name, retention, version_id)
106+
time.sleep(1)
106107
assert_object_lock_mode(self.s3_client, bucket, file_name, "COMPLIANCE", date_obj, "OFF")
107108

108109
with allure.step(f"Try to change retention period {retention_period_1}min to object {file_name}"):
@@ -113,6 +114,7 @@ def test_s3_mode_compliance(self):
113114
}
114115
with pytest.raises(Exception):
115116
s3_object.put_object_retention(self.s3_client, bucket, file_name, retention, version_id)
117+
time.sleep(1)
116118

117119
@allure.title("Test S3: Checking the ability to change retention mode GOVERNANCE")
118120
@pytest.mark.simple

0 commit comments

Comments
 (0)