diff options
author | Tomasz Maczukin <tomasz@maczukin.pl> | 2018-03-05 19:49:40 +0300 |
---|---|---|
committer | Tomasz Maczukin <tomasz@maczukin.pl> | 2018-03-28 14:57:41 +0300 |
commit | 62f053e4e50dd04933d49622a74dcb89ebe8174e (patch) | |
tree | c1fdd2206fff93531d78267cc6edc9dc4d1a9622 /spec/requests/api/runner_spec.rb | |
parent | d02694c5c53265ccd9e8a51a52dc8bb8bcbff656 (diff) |
Update runner registration API
Diffstat (limited to 'spec/requests/api/runner_spec.rb')
-rw-r--r-- | spec/requests/api/runner_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/requests/api/runner_spec.rb b/spec/requests/api/runner_spec.rb index 55c4150a393..0ca7ba7154e 100644 --- a/spec/requests/api/runner_spec.rb +++ b/spec/requests/api/runner_spec.rb @@ -112,7 +112,7 @@ describe API::Runner do context 'when maximum job timeout is specified' do it 'creates runner' do post api('/runners'), token: registration_token, - maximum_job_timeout_human_readable: '2h 30m' + maximum_job_timeout: '2h 30m' expect(response).to have_gitlab_http_status 201 expect(Ci::Runner.first.maximum_job_timeout).to eq(9000) @@ -121,7 +121,7 @@ describe API::Runner do context 'when maximum job timeout is empty' do it 'creates runner' do post api('/runners'), token: registration_token, - maximum_job_timeout_human_readable: '' + maximum_job_timeout: '' expect(response).to have_gitlab_http_status 201 expect(Ci::Runner.first.maximum_job_timeout).to be_nil |