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:
Diffstat (limited to 'spec/lib/gitlab/other_markup_spec.rb')
-rw-r--r--spec/lib/gitlab/other_markup_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/lib/gitlab/other_markup_spec.rb b/spec/lib/gitlab/other_markup_spec.rb
index cdeaed6d368..266cb75a8ac 100644
--- a/spec/lib/gitlab/other_markup_spec.rb
+++ b/spec/lib/gitlab/other_markup_spec.rb
@@ -122,7 +122,9 @@ RSpec.describe Gitlab::OtherMarkup, feature_category: :wiki do
test_text = '<A' + ('A' * 54773)
expect do
- Timeout.timeout(3.seconds) { RedCloth.new(test_text, [:sanitize_html]).to_html }
+ Timeout.timeout(Gitlab::OtherMarkup::RENDER_TIMEOUT.seconds) do
+ RedCloth.new(test_text, [:sanitize_html]).to_html
+ end
end.not_to raise_error
end
end