Commit e74c1c19 authored by Robert Speicher's avatar Robert Speicher

Job tokens require running job

parent be5a7e70
......@@ -55,7 +55,7 @@ RSpec.describe API::GenericPackages do
context 'authenticating using job token' do
it 'responds with 200 OK when valid job token is provided' do
job_token = create(:ci_build, user: user).token
job_token = create(:ci_build, :running, user: user).token
ping(job_token: job_token)
......
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