mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 09:48:06 +08:00
DEV: Improve flaky time-sensitive specs (#9141)
This commit is contained in:
@ -145,6 +145,7 @@ describe PostActionCreator do
|
||||
before { reviewable.perform(admin, :ignore) }
|
||||
|
||||
it "fails because the post was recently reviewed" do
|
||||
freeze_time 10.seconds.from_now
|
||||
result = PostActionCreator.create(user, post, :inappropriate)
|
||||
|
||||
expect(result.success?).to eq(false)
|
||||
|
Reference in New Issue
Block a user