mirror of
https://github.com/mastodon/mastodon.git
synced 2025-05-12 04:31:11 +00:00
Fix intermittent failure on ap/activity/create spec timestamp check (#33406)
This commit is contained in:
parent
34073b4d56
commit
232229e4bc
|
@ -628,7 +628,7 @@ RSpec.describe ActivityPub::Activity::Create do
|
|||
expect { subject.perform }
|
||||
.to change(sender.statuses, :count).by(1)
|
||||
.and change { sender.featured_tags.first.reload.statuses_count }.by(1)
|
||||
.and change { sender.featured_tags.first.reload.last_status_at }.from(nil).to(be_within(0.1).of(Time.now.utc))
|
||||
.and change { sender.featured_tags.first.reload.last_status_at }.from(nil).to(be_present)
|
||||
|
||||
status = sender.statuses.first
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user