Skip to content

Commit 9cab264

Browse files
committed
Merge dev into main
2 parents ca2d9a9 + 52c9d0c commit 9cab264

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/integration/aws/s3/test_S3.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import os
22
from unittest import TestCase
3+
from osbot_utils.utils.Env import in_github_action
34
from osbot_aws.AWS_Config import aws_config
45
from osbot_aws.aws.s3.S3 import S3
56
from osbot_utils.helpers.duration.decorators.capture_duration import capture_duration
@@ -66,7 +67,11 @@ def test_bucket_exists(self):
6667
assert S3().bucket_exists(bucket_name) is False
6768

6869
assert duration_1.seconds < 0.01 # reusing object should take less than 20ms (it is usually about 0.004)
69-
assert duration_2.seconds < 0.04 # craeting new object should take less than 40ms (it is usually about 0.013)
70+
71+
if in_github_action():
72+
assert duration_2.seconds < 0.25 # the fist time this runs in GH Actions can take a bit longer
73+
else:
74+
assert duration_2.seconds < 0.04 # creating new object should take less than 40ms (it is usually about 0.013)
7075

7176

7277

0 commit comments

Comments
 (0)