DEV: Remove flaky topic_view_serializer spec (#13845)

We tried fixing this one in b579e9a7de
but it continues to cause nothing but problems.
This commit is contained in:
Martin Brennan 2021-07-26 13:17:53 +10:00 committed by GitHub
parent 88aa0136e3
commit 3d25572970
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 13 deletions

View File

@ -73,19 +73,6 @@ describe TopicViewSerializer do
json = serialize_topic(topic, user)
end.to change { Jobs::GenerateTopicThumbnails.jobs.size }.by(0)
end
it 'should have thumbnails after jobs run' do
Jobs.run_immediately!
SiteSetting.create_thumbnails = true
Discourse.redis.del(topic.thumbnail_job_redis_key(Topic.thumbnail_sizes))
json = serialize_topic(topic, user)
topic.generate_thumbnails!
json = serialize_topic(topic, user)
# Original + Optimized
expect(json[:thumbnails].length).to eq(2)
end
end
describe 'when a topic does not contain an image' do