1
0
Fork 0

Fix slow specs

This commit is contained in:
Alex Kotov 2019-09-13 22:17:42 +05:00
parent e991b9761c
commit 9be8f349f4
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08

View file

@ -6,7 +6,7 @@ RSpec.describe 'GET /staff/x509_certificates' do
let(:current_account) { create :superuser_account }
let :x509_certificates_count do
[0, 1, rand(2..4), rand(5..10), rand(20..100)].sample
[0, 1, rand(2..4), rand(5..10), rand(20..40)].sample
end
before do
@ -62,7 +62,7 @@ RSpec.describe 'GET /staff/x509_certificates' do
end
context 'when there are lot of X509 certificates' do
let(:x509_certificates_count) { rand 20..100 }
let(:x509_certificates_count) { rand 20..40 }
specify do
expect(response).to have_http_status :ok