Maintenance: Stabilize Text Module test by disabling XSS processing timeout.

This commit is contained in:
Martin Gruner 2022-02-11 15:25:39 +01:00
parent dd71e0c219
commit 502e60b051

View file

@ -4,6 +4,11 @@ require 'rails_helper'
RSpec.describe 'Text Module', type: :request do
before do
# XSS processing may run into a timeout on slow CI systems, so turn the timeout off for the test.
stub_const("#{HtmlSanitizer}::PROCESSING_TIMEOUT", nil)
end
let(:admin) do
create(:admin)
end