mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 20:44:40 +08:00
PERF: avoid checking for consecutive replies in test
This check can issue up to 2 queries per post created, we have specific tests for it so we can avoid. This also rolls back #4da6ca4d
This commit is contained in:
@ -102,7 +102,7 @@ describe PostRevisor do
|
||||
end
|
||||
|
||||
context 'revise' do
|
||||
let(:post) { Fabricate(:post_with_validation, post_args) }
|
||||
let(:post) { Fabricate(:post, post_args) }
|
||||
let(:first_version_at) { post.last_version_at }
|
||||
|
||||
subject { PostRevisor.new(post) }
|
||||
|
Reference in New Issue
Block a user