Maintenance: Work around timeouts caused by the sanitizer in slow CI environments.
This commit is contained in:
parent
d98445d1fe
commit
0b659776e9
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