File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 11import os
22from unittest import TestCase
3+ from osbot_utils .utils .Env import in_github_action
34from osbot_aws .AWS_Config import aws_config
45from osbot_aws .aws .s3 .S3 import S3
56from 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
You can’t perform that action at this time.
0 commit comments