Commit 9877a42a authored by Mike Kozono's avatar Mike Kozono

Try to fix flaky tests

parent 403d5d6f
......@@ -41,7 +41,11 @@ describe Gitlab::ImportExport::GroupTreeSaver do
it 'saves parent of epic' do
expect_successful_save(group_tree_saver)
parent = saved_group_json['epics'].first['parent']
child = saved_group_json['epics'].find do |attrs|
attrs['id'] == epic.id
end
parent = child['parent']
expect(parent).not_to be_empty
expect(parent['id']).to eq(parent_epic.id)
......@@ -50,7 +54,11 @@ describe Gitlab::ImportExport::GroupTreeSaver do
it 'saves epic notes' do
expect_successful_save(group_tree_saver)
notes = saved_group_json['epics'].first['notes']
child = saved_group_json['epics'].find do |attrs|
attrs['id'] == epic.id
end
notes = child['notes']
expect(notes).not_to be_empty
expect(notes.first['note']).to eq(note.note)
......
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