FIX: Concurrency issues with making topic embedded posts visible

This commit is contained in:
Robin Ward
2020-04-20 15:11:59 -04:00
parent e997a1f315
commit 25bed4f643
4 changed files with 28 additions and 12 deletions

View File

@@ -75,6 +75,7 @@ describe TopicEmbed do
end
it "will make the topic unlisted if `embed_unlisted` is set until someone replies" do
Jobs.run_immediately!
SiteSetting.embed_unlisted = true
imported_post = TopicEmbed.import(user, "http://eviltrout.com/abcd", title, "some random content")
expect(imported_post.topic).not_to be_visible