Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzegorz@gitlab.com>2019-08-23 12:31:40 +0300
committerGrzegorz Bizon <grzegorz@gitlab.com>2019-08-23 12:31:40 +0300
commitf7f3b3c3efd58f31ed422808722b0c81a0bf1064 (patch)
treef4db4851097513f0c3fb5393cb5bce2f3dac9546 /spec/models
parente724b323debb1eab1e1a13d85d355e6d03a26ced (diff)
parenta5f6182753502a5e74b06836c9bb70d287bf6fe6 (diff)
Merge branch 'optimise-build-queue-service' into 'master'
Optimise UpdateBuildQueueService Closes #66438 See merge request gitlab-org/gitlab-ce!32095
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/ci/runner_spec.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/models/ci/runner_spec.rb b/spec/models/ci/runner_spec.rb
index 78b151631c1..70ff3cf5dc4 100644
--- a/spec/models/ci/runner_spec.rb
+++ b/spec/models/ci/runner_spec.rb
@@ -80,6 +80,13 @@ describe Ci::Runner do
end
end
+ describe 'constraints' do
+ it '.UPDATE_CONTACT_COLUMN_EVERY' do
+ expect(described_class::UPDATE_CONTACT_COLUMN_EVERY.max)
+ .to be <= described_class::ONLINE_CONTACT_TIMEOUT
+ end
+ end
+
describe '#access_level' do
context 'when creating new runner and access_level is nil' do
let(:runner) do