diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-10-28 18:31:08 +0000 |
---|---|---|
committer | Kamil TrzciĆski <ayufan@ayufan.eu> | 2018-10-28 18:31:08 +0000 |
commit | 4611a59968c65d1eda83af6c33bb844d9610fa12 (patch) | |
tree | 6996b0b5a91d0fdab833b3067b53c6f86221af22 /spec/requests | |
parent | 8a116be4848720c41420c878c218b10ac7a3f182 (diff) | |
download | gitlab-ce-4611a59968c65d1eda83af6c33bb844d9610fa12.tar.gz |
Add failure reason for execution timeout
Diffstat (limited to 'spec/requests')
-rw-r--r-- | spec/requests/api/runner_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/requests/api/runner_spec.rb b/spec/requests/api/runner_spec.rb index c0d5a3ad74b..909703a8d47 100644 --- a/spec/requests/api/runner_spec.rb +++ b/spec/requests/api/runner_spec.rb @@ -806,6 +806,15 @@ describe API::Runner, :clean_gitlab_redis_shared_state do it { expect(job).to be_unknown_failure } end + + context 'when failure_reason is job_execution_timeout' do + before do + update_job(state: 'failed', failure_reason: 'job_execution_timeout') + job.reload + end + + it { expect(job).to be_job_execution_timeout } + end end context 'when trace is given' do |