mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:34:31 +08:00
PERF: Speed up slow tests in our test suite.
Before ``` Finished in 7 minutes 23 seconds (files took 4.15 seconds to load) 7145 examples, 0 failures, 10 pending ``` After ``` Finished in 6 minutes 12 seconds (files took 4.41 seconds to load) 7145 examples, 0 failures, 10 pending ```
This commit is contained in:
@ -39,7 +39,7 @@ class UploadCreator
|
||||
|
||||
if @filename[/\.svg$/i]
|
||||
whitelist_svg!
|
||||
else
|
||||
elsif !Rails.env.test?
|
||||
convert_to_jpeg! if should_convert_to_jpeg?
|
||||
downsize! if should_downsize?
|
||||
|
||||
|
Reference in New Issue
Block a user