Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix nightly failures of usage of with #96

Merged
merged 1 commit into from
Jun 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test/regedit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ end
mktempdir(@__DIR__) do temp_cache_dir
# test when registry is not in the cache and not downloaded
cache = RegistryTools.RegistryCache(temp_cache_dir)
with(get_registry(DEFAULT_REGISTRY_URL, cache=cache, gitconfig=TEST_GITCONFIG)) do repo
LibGit2.with(get_registry(DEFAULT_REGISTRY_URL, cache=cache, gitconfig=TEST_GITCONFIG)) do repo
@test LibGit2.path(repo) == replace(RegistryTools.path(cache, DEFAULT_REGISTRY_URL), '\\'=>'/')
@test LibGit2.branch(repo) == "master"
@test !LibGit2.isdirty(repo)
Expand All @@ -61,7 +61,7 @@ end
registry_path = RegistryTools.path(cache, DEFAULT_REGISTRY_URL)
rm(registry_path, recursive=true, force=true)
@test !ispath(registry_path)
with(get_registry(DEFAULT_REGISTRY_URL, cache=cache, gitconfig=TEST_GITCONFIG)) do repo
LibGit2.with(get_registry(DEFAULT_REGISTRY_URL, cache=cache, gitconfig=TEST_GITCONFIG)) do repo
@test LibGit2.path(repo) == replace(RegistryTools.path(cache, DEFAULT_REGISTRY_URL), '\\'=>'/')
@test LibGit2.branch(repo) == "master"
@test !LibGit2.isdirty(repo)
Expand All @@ -80,7 +80,7 @@ end
@test LibGit2.GitObject(repo, "HEAD") != LibGit2.GitObject(repo, "master")
@test ispath(registry_path)
end
with(get_registry(DEFAULT_REGISTRY_URL, cache=cache, gitconfig=TEST_GITCONFIG)) do repo
LibGit2.with(get_registry(DEFAULT_REGISTRY_URL, cache=cache, gitconfig=TEST_GITCONFIG)) do repo
@test LibGit2.path(repo) == replace(RegistryTools.path(cache, DEFAULT_REGISTRY_URL), '\\'=>'/')
@test LibGit2.branch(repo) == "master"
@test !LibGit2.isdirty(repo)
Expand Down
Loading