Maintenance: Work around timeouts caused by the sanitizer in slow CI environments.
This commit is contained in:
parent
95571b70c9
commit
60c0b08d21
1 changed files with 6 additions and 0 deletions
|
@ -1236,6 +1236,12 @@ RSpec.describe Channel::EmailParser, type: :model do
|
||||||
end
|
end
|
||||||
|
|
||||||
describe 'XSS protection' do
|
describe 'XSS protection' 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(:article) { described_class.new.process({}, raw_mail).second }
|
let(:article) { described_class.new.process({}, raw_mail).second }
|
||||||
|
|
||||||
let(:raw_mail) { <<~RAW.chomp }
|
let(:raw_mail) { <<~RAW.chomp }
|
||||||
|
|
Loading…
Reference in a new issue