Maintenance: Stabilize Text Module test by disabling XSS processing timeout.
This commit is contained in:
parent
dd71e0c219
commit
502e60b051
1 changed files with 5 additions and 0 deletions
|
@ -4,6 +4,11 @@ require 'rails_helper'
|
||||||
|
|
||||||
RSpec.describe 'Text Module', type: :request do
|
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
|
let(:admin) do
|
||||||
create(:admin)
|
create(:admin)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue