Commit 910f5699 authored by fjsanpedro's avatar fjsanpedro Committed by Francisco Javier López

Fixing flaky spec backup_rake_spec

parent d1336e51
...@@ -299,7 +299,7 @@ RSpec.describe 'gitlab:app namespace rake task', :delete do ...@@ -299,7 +299,7 @@ RSpec.describe 'gitlab:app namespace rake task', :delete do
end end
shared_examples 'includes repositories in all repository storages' do shared_examples 'includes repositories in all repository storages' do
specify :aggregate_failures, quarantine: 'https://gitlab.com/gitlab-org/gitlab/-/issues/263097' do specify :aggregate_failures do
project_a = create(:project, :repository) project_a = create(:project, :repository)
project_a.track_project_repository project_a.track_project_repository
project_snippet_a = create(:project_snippet, :repository, project: project_a, author: project_a.owner) project_snippet_a = create(:project_snippet, :repository, project: project_a, author: project_a.owner)
...@@ -331,11 +331,7 @@ RSpec.describe 'gitlab:app namespace rake task', :delete do ...@@ -331,11 +331,7 @@ RSpec.describe 'gitlab:app namespace rake task', :delete do
"#{project_snippet_a.disk_path}.bundle", "#{project_snippet_a.disk_path}.bundle",
"#{project_snippet_b.disk_path}.bundle" "#{project_snippet_b.disk_path}.bundle"
].each do |repo_name| ].each do |repo_name|
repo_lines = tar_lines.grep(/#{repo_name}/) expect(tar_lines.grep(/#{repo_name}/).size).to eq 1
expect(repo_lines.size).to eq 1
# Checking that the size of the bundle is bigger than 0
expect(repo_lines.first.split[4].to_i > 0).to be true
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment