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 Mar 28, 2024
1 parent eab9c55 commit fafbe9f
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 fafbe9f

Please sign in to comment.