Fix slow specs
This commit is contained in:
parent
e991b9761c
commit
9be8f349f4
1 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ RSpec.describe 'GET /staff/x509_certificates' do
|
||||||
let(:current_account) { create :superuser_account }
|
let(:current_account) { create :superuser_account }
|
||||||
|
|
||||||
let :x509_certificates_count do
|
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
|
end
|
||||||
|
|
||||||
before do
|
before do
|
||||||
|
@ -62,7 +62,7 @@ RSpec.describe 'GET /staff/x509_certificates' do
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'when there are lot of X509 certificates' do
|
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
|
specify do
|
||||||
expect(response).to have_http_status :ok
|
expect(response).to have_http_status :ok
|
||||||
|
|
Reference in a new issue