DEV: Fix png optimization test flakyness (#19535)
* DEV: Fix png optimization test flakyness Update fixture with oxipng 7 This test broke when the pngoptimizer got better so the pre-optimized png in the fixtures was compressed further on upload creation, breaking the expected size.
This commit is contained in:
parent
318ebdf7e0
commit
06ff15f3ae
Binary file not shown.
Before Width: | Height: | Size: 9.3 KiB After Width: | Height: | Size: 9.0 KiB |
|
@ -139,7 +139,7 @@ RSpec.describe UploadCreator do
|
||||||
).create_for(user.id)
|
).create_for(user.id)
|
||||||
|
|
||||||
# no optimisation possible without losing details
|
# no optimisation possible without losing details
|
||||||
expect(upload.filesize).to eq(9558)
|
expect(upload.filesize).to eq(9202)
|
||||||
|
|
||||||
thumbnail_size = upload.get_optimized_image(upload.width, upload.height, {}).filesize
|
thumbnail_size = upload.get_optimized_image(upload.width, upload.height, {}).filesize
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue