Skip to content

Commit

Permalink
Unlink git_repository lockfile after spec
Browse files Browse the repository at this point in the history
  • Loading branch information
agrare committed Oct 14, 2024
1 parent 1a3ceee commit 01fcc7b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/models/git_repository_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@
let(:userid) { 'user' }
let(:password) { 'password' }

after do
described_class::LOCKFILE_DIR.join(repo.id.to_s).unlink
rescue Errno::ENOENT
nil
end

context "parameter check" do
let(:args) do
{
Expand Down

0 comments on commit 01fcc7b

Please sign in to comment.