diff options
author | Robert Speicher <rspeicher@gmail.com> | 2019-05-17 17:12:50 +0000 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2019-05-17 17:12:50 +0000 |
commit | a3795a0cff4f084fd349af6c257a3ac81163b132 (patch) | |
tree | 89ed6255a508f4f9e402e023b8e86aa5c044e4c3 /spec/lib | |
parent | 5ec4052281da296f40d6eec90301cbf44c93f5c4 (diff) | |
parent | ccde391648ce9aece94a3b63ccccbd7df67ce693 (diff) | |
download | gitlab-ce-a3795a0cff4f084fd349af6c257a3ac81163b132.tar.gz |
Merge branch 'fix-too-many-loops-cron-error' into 'master'
Rescue too many loops cron error
Closes #58241
See merge request gitlab-org/gitlab-ce!28002
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/gitlab/ci/cron_parser_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/lib/gitlab/ci/cron_parser_spec.rb b/spec/lib/gitlab/ci/cron_parser_spec.rb index 2a3f7807fdb..491e3fba9d9 100644 --- a/spec/lib/gitlab/ci/cron_parser_spec.rb +++ b/spec/lib/gitlab/ci/cron_parser_spec.rb @@ -174,6 +174,13 @@ describe Gitlab::Ci::CronParser do it { expect(subject).to be_nil } end + + context 'when cron is scheduled to a non existent day' do + let(:cron) { '0 12 31 2 *' } + let(:cron_timezone) { 'UTC' } + + it { expect(subject).to be_nil } + end end describe '#cron_valid?' do |