Skip to content

Commit 3e46512

Browse files
Retry 503 and 504 since they can be transient errors
1 parent 24416a8 commit 3e46512

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/azure_blobs_exception_tests.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,9 @@ end # @testitem
297297
# while attempting to fulfill the request.
298298
# This error can occur when you enter HTTP instead of HTTPS in the connection.
299299
nrequests = test_status(:GET, 502)
300-
@test nrequests == 1 broken=true
300+
@test nrequests == 1 + max_retries
301301
nrequests = test_status(:PUT, 502)
302-
@test nrequests == 1 broken=true
302+
@test nrequests == 1 + max_retries
303303
end
304304

305305
@testset "503: Service Unavailable" begin
@@ -328,8 +328,8 @@ end # @testitem
328328
# a gateway or proxy, did not receive a timely response from an upstream server it
329329
# needed to access in order to complete the request
330330
nrequests = test_status(:GET, 504)
331-
@test nrequests == 1 broken=true
331+
@test nrequests == 1 + max_retries
332332
nrequests = test_status(:PUT, 504)
333-
@test nrequests == 1 broken=true
333+
@test nrequests == 1 + max_retries
334334
end
335335
end

0 commit comments

Comments
 (0)