Commit 1f31a672 authored by Rémy Coutable's avatar Rémy Coutable

Fix an ID-dependent test

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 13f94950
......@@ -53,7 +53,7 @@ describe API::IssueLinks do
target_issue = create(:issue)
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(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