Skip to content

Commit

Permalink
test: attempt to fix spec that is flakey on postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Aug 19, 2023
1 parent 6e18527 commit dade19e
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,7 @@ module Versions
.create_consumer_version("2", branch: "main")
end

let(:branch_version) { BranchVersion.first }

subject { BranchVersionRepository.new.delete_branch_version(BranchVersion.first) }
let(:branch_version) { BranchVersion.order(:id).first }

it "does not update the branch head" do
expect { subject }.to_not change { BranchHead.first.version_id }
Expand Down Expand Up @@ -118,7 +116,7 @@ module Versions

let(:branch_version) { BranchVersion.first }

it "does not create a new branch head" do
it "deletes the branch head" do
expect { subject }.to change { BranchHead.count }.by(-1)
end
end
Expand Down

0 comments on commit dade19e

Please sign in to comment.