Commit 6658cbd6 authored by Stan Hu's avatar Stan Hu

Fix flaky spec/requests/api/groups_spec.rb

The results of the API response could return in any order depending
on the database results. Loosen the test to allow for that.
parent 7e96802c
......@@ -341,7 +341,7 @@ describe API::Groups do
expect(response).to have_gitlab_http_status(:ok)
expect(response).to include_pagination_headers
expect(json_response).to be_an Array
expect(response_groups).to eq([group2.id, group3.id])
expect(response_groups).to contain_exactly(group2.id, group3.id)
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