Skip to content

Commit

Permalink
Fix a test
Browse files Browse the repository at this point in the history
  • Loading branch information
DilumAluthge authored Oct 31, 2023
1 parent 082cff0 commit 00765fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/utilities/git.jl
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,10 @@ CompatHelper.get_url_for_ssh(::MyForge, ::MyCIService, repo::MyRepo) = repo.loca
@test !occursin(pushed_str, output)

# TODO: use patches (via Mocking.jl) instead of the current approach.
api = MyForge()
forge = MyForge()
ci_cfg = MyCIService()
repo = MyRepo(local_remote_path)
CompatHelper.git_push(api, ci_cfg, repo, "origin", "master", pkey)
CompatHelper.git_push(ci_cfg, repo, "origin", "master", pkey; forge, ci_cfg, repo)

output = read(`git log --decorate`, String)
@test occursin(pushed_str, output)
Expand Down

0 comments on commit 00765fa

Please sign in to comment.