Skip to content

Commit 5fe6b91

Browse files
committed
fix: test with force=true and tries=2
1 parent dbcad55 commit 5fe6b91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/tests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,14 +178,14 @@ end
178178
@testset "no retries" begin
179179
delete_token()
180180

181-
success = PkgAuthentication.authenticate(test_pkg_server)
181+
success = PkgAuthentication.authenticate(test_pkg_server; force=true, tries=2)
182182
@test success isa PkgAuthentication.Success
183183
m = match(r"^\w+\-(\d+)$", success.token["id_token"])
184184
@test !isnothing(m)
185185
id1 = tryparse(Int, m.captures[1])
186186
@test id1 !== nothing
187187

188-
success2 = PkgAuthentication.authenticate(test_pkg_server)
188+
success2 = PkgAuthentication.authenticate(test_pkg_server; force=true, tries=2)
189189
@test success2 isa PkgAuthentication.Success
190190
m2 = match(r"^\w+\-(\d+)$", success2.token["id_token"])
191191
@test !isnothing(m2)

0 commit comments

Comments
 (0)