Skip to content

Commit

Permalink
Try #262:
Browse files Browse the repository at this point in the history
  • Loading branch information
bors[bot] authored Jul 19, 2022
2 parents 232b230 + 81bdd26 commit 1422330
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,18 @@ include("awss3.jl") # creates `s3path_tests(config)`

# Set `AWSConfig` as the default for the following tests
aws = global_aws_config(AWSConfig())
@testset "S3" begin
awss3_tests(aws)
s3path_tests(aws)

prev_backend = AWS.DEFAULT_BACKEND[]
for backend in (AWS.HTTPBackend, AWS.DownloadsBackend)
AWS.DEFAULT_BACKEND[] = backend()
try
@testset "S3 with $backend" begin
awss3_tests(aws)
s3path_tests(aws)
end
finally
AWS.DEFAULT_BACKEND[] = prev_backend
end
end

end

0 comments on commit 1422330

Please sign in to comment.