Commit 7831a10b authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Fix test with hard coded id

Also fixes static-analysis error
parent 43232dbe
- if search_service.use_elasticsearch? - if search_service.use_elasticsearch?
.form-text.text-muted .form-text.text-muted
= link_to _('Advanced search functionality'), help_page_path('user/search/advanced_search_syntax.md'), target: '_blank' = link_to _('Advanced search functionality'), help_page_path('user/search/advanced_search_syntax.md'), target: '_blank'
is enabled. = _('is enabled.')
...@@ -9054,6 +9054,9 @@ msgstr "" ...@@ -9054,6 +9054,9 @@ msgstr ""
msgid "Pipeline" msgid "Pipeline"
msgstr "" msgstr ""
msgid "Pipeline ID (IID)"
msgstr ""
msgid "Pipeline Schedule" msgid "Pipeline Schedule"
msgstr "" msgstr ""
...@@ -15527,6 +15530,9 @@ msgstr[1] "" ...@@ -15527,6 +15530,9 @@ msgstr[1] ""
msgid "invalid milestone state `%{state}`" msgid "invalid milestone state `%{state}`"
msgstr "" msgstr ""
msgid "is enabled."
msgstr ""
msgid "is invalid because there is downstream lock" msgid "is invalid because there is downstream lock"
msgstr "" msgstr ""
......
...@@ -172,7 +172,9 @@ describe API::Issues do ...@@ -172,7 +172,9 @@ describe API::Issues do
end end
it 'returns 404 when project does not exist' do it 'returns 404 when project does not exist' do
get api('/projects/1000/issues', non_member) max_project_id = Project.maximum(:id).to_i
get api("/projects/#{max_project_id + 1}/issues", non_member)
expect(response).to have_gitlab_http_status(404) expect(response).to have_gitlab_http_status(404)
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