FIX: Slow test (deadlock)
It was getting caught in a `DistributedMutex` deadlock (twice!), which meant this test was taking 120s to run. I'm not sure why queue jobs was turned off here, because when I turn it on the test passes and takes <2s instead.
This commit is contained in:
parent
563b953224
commit
34b2157b8c
|
@ -1228,12 +1228,10 @@ describe CookedPostProcessor do
|
|||
end
|
||||
|
||||
it "works only on new posts" do
|
||||
SiteSetting.queue_jobs = false
|
||||
|
||||
hidden = Fabricate(:post, topic: topic, hidden: true, raw: "this is the second post after")
|
||||
small_action = Fabricate(:post, topic: topic, post_type: Post.types[:small_action])
|
||||
|
||||
Fabricate(:post, topic: topic, hidden: true, raw: "this is the second post after")
|
||||
Fabricate(:post, topic: topic, post_type: Post.types[:small_action])
|
||||
reply = PostCreator.create!(topic.user, topic_id: topic.id, raw: raw)
|
||||
|
||||
CookedPostProcessor.new(reply).post_process
|
||||
expect(reply.raw).to eq(raw)
|
||||
|
||||
|
|
Loading…
Reference in New Issue