DEV: Clean up thumbnail tests correctly

This commit is contained in:
David Taylor 2020-05-19 11:04:02 +01:00
parent 725e38f9d7
commit e9f579bd3f
No known key found for this signature in database
GPG Key ID: 46904C18B1D3F434
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ describe "Topic Thumbnails" do
context 'latest' do
def get_topic
Discourse.redis.del(topic.thumbnail_job_redis_key([]))
Discourse.redis.del(topic.thumbnail_job_redis_key(Topic.thumbnail_sizes))
get '/latest.json'
response.parsed_body["topic_list"]["topics"][0]
end

View File

@ -60,7 +60,7 @@ describe TopicViewSerializer do
it 'should have thumbnails' do
SiteSetting.create_thumbnails = true
Discourse.redis.del(topic.thumbnail_job_redis_key([]))
Discourse.redis.del(topic.thumbnail_job_redis_key(Topic.thumbnail_sizes))
json = nil
expect do