Skip to content

Commit 1422330

Browse files
authored
Try #262:
2 parents 232b230 + 81bdd26 commit 1422330

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

test/runtests.jl

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,18 @@ include("awss3.jl") # creates `s3path_tests(config)`
5151

5252
# Set `AWSConfig` as the default for the following tests
5353
aws = global_aws_config(AWSConfig())
54-
@testset "S3" begin
55-
awss3_tests(aws)
56-
s3path_tests(aws)
54+
55+
prev_backend = AWS.DEFAULT_BACKEND[]
56+
for backend in (AWS.HTTPBackend, AWS.DownloadsBackend)
57+
AWS.DEFAULT_BACKEND[] = backend()
58+
try
59+
@testset "S3 with $backend" begin
60+
awss3_tests(aws)
61+
s3path_tests(aws)
62+
end
63+
finally
64+
AWS.DEFAULT_BACKEND[] = prev_backend
65+
end
5766
end
67+
5868
end

0 commit comments

Comments
 (0)