Skip to content

Fix flaky test for StreamingSerializer

Related to #390356 (closed)

What does this MR do and why?

This MR fixes the flaky spec for inaccessible associations export that was failing because it deleted an item from the collection using its index (that might vary) instead of its ID.

$ bin/rspec './spec/lib/gitlab/import_export/json/streaming_serializer_spec.rb[1:1:6:2:1:1:1:1]' --seed 56182

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Eugenia Grieff

Merge request reports