mirror of
https://github.com/discourse/discourse.git
synced 2025-02-11 22:04:58 +00:00
b579e9a7de
This is just a hunch, but this is quite a complex test. I think that there is some timing issue where the jobs enqueued for generating the thumbnails via the serializer thumbnails method and they aren't generated in time before we do the json[:thumbnails] check. Split the tests up into two, with one checking the right jobs are enqueued and another with Jobs.run_immediately! that checks that json[:thumbnails] is correct.