Commit dde800cf authored by Lin Jen-Shin's avatar Lin Jen-Shin

Merge branch...

Merge branch '205219-broken-master-in-ee-spec-requests-api-issue_links_spec-rb-52-api-issuelinks-post-links-when' into 'master'

Fix an ID-dependent test

See merge request gitlab-org/gitlab!24993
parents 1d0824a2 1f31a672
...@@ -380,13 +380,13 @@ rspec-ee integration pg10: ...@@ -380,13 +380,13 @@ rspec-ee integration pg10:
extends: extends:
- .rspec-ee-base-pg10 - .rspec-ee-base-pg10
- .rails:rules:master-refs-code-backstage - .rails:rules:master-refs-code-backstage
parallel: 3 parallel: 4
rspec-ee system pg10: rspec-ee system pg10:
extends: extends:
- .rspec-ee-base-pg10 - .rspec-ee-base-pg10
- .rails:rules:master-refs-code-backstage - .rails:rules:master-refs-code-backstage
parallel: 5 parallel: 6
# ee + master-only jobs # # ee + master-only jobs #
######################### #########################
......
...@@ -53,7 +53,7 @@ describe API::IssueLinks do ...@@ -53,7 +53,7 @@ describe API::IssueLinks do
target_issue = create(:issue) target_issue = create(:issue)
post api("/projects/#{project.id}/issues/#{issue.iid}/links", user), post api("/projects/#{project.id}/issues/#{issue.iid}/links", user),
params: { target_project_id: 999, target_issue_iid: target_issue.iid } params: { target_project_id: -1, target_issue_iid: target_issue.iid }
expect(response).to have_gitlab_http_status(404) expect(response).to have_gitlab_http_status(404)
expect(json_response['message']).to eq('404 Project Not Found') expect(json_response['message']).to eq('404 Project Not Found')
......
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