Skip to content

Commit 8418a12

Browse files
jaakkor2GunnarFarneback
authored andcommitted
Fix nightly failures of usage of with
1 parent 77e2a02 commit 8418a12

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/regedit.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ end
5050
mktempdir(@__DIR__) do temp_cache_dir
5151
# test when registry is not in the cache and not downloaded
5252
cache = RegistryTools.RegistryCache(temp_cache_dir)
53-
with(get_registry(DEFAULT_REGISTRY_URL, cache=cache, gitconfig=TEST_GITCONFIG)) do repo
53+
LibGit2.with(get_registry(DEFAULT_REGISTRY_URL, cache=cache, gitconfig=TEST_GITCONFIG)) do repo
5454
@test LibGit2.path(repo) == replace(RegistryTools.path(cache, DEFAULT_REGISTRY_URL), '\\'=>'/')
5555
@test LibGit2.branch(repo) == "master"
5656
@test !LibGit2.isdirty(repo)
@@ -61,7 +61,7 @@ end
6161
registry_path = RegistryTools.path(cache, DEFAULT_REGISTRY_URL)
6262
rm(registry_path, recursive=true, force=true)
6363
@test !ispath(registry_path)
64-
with(get_registry(DEFAULT_REGISTRY_URL, cache=cache, gitconfig=TEST_GITCONFIG)) do repo
64+
LibGit2.with(get_registry(DEFAULT_REGISTRY_URL, cache=cache, gitconfig=TEST_GITCONFIG)) do repo
6565
@test LibGit2.path(repo) == replace(RegistryTools.path(cache, DEFAULT_REGISTRY_URL), '\\'=>'/')
6666
@test LibGit2.branch(repo) == "master"
6767
@test !LibGit2.isdirty(repo)
@@ -80,7 +80,7 @@ end
8080
@test LibGit2.GitObject(repo, "HEAD") != LibGit2.GitObject(repo, "master")
8181
@test ispath(registry_path)
8282
end
83-
with(get_registry(DEFAULT_REGISTRY_URL, cache=cache, gitconfig=TEST_GITCONFIG)) do repo
83+
LibGit2.with(get_registry(DEFAULT_REGISTRY_URL, cache=cache, gitconfig=TEST_GITCONFIG)) do repo
8484
@test LibGit2.path(repo) == replace(RegistryTools.path(cache, DEFAULT_REGISTRY_URL), '\\'=>'/')
8585
@test LibGit2.branch(repo) == "master"
8686
@test !LibGit2.isdirty(repo)

0 commit comments

Comments
 (0)