Commit 916bd60e authored by David Fernandez's avatar David Fernandez

Fix a flaky spec

Under some condition, the wrong package file is returned when asserting
that package file pending destruction are returned.
parent 737ecf8b
......@@ -108,6 +108,7 @@ RSpec.describe ::Packages::Npm::PackagePresenter do
context 'with packages_installable_package_files disabled' do
before do
stub_feature_flags(packages_installable_package_files: false)
package2.package_files.id_not_in(package_file_pending_destruction.id).delete_all
end
it 'returns them' do
......
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