Fix intermittent failure on ap/activity/create spec timestamp check (#33406)

pull/2976/head
Matt Jankowski 2025-01-02 03:38:22 -05:00 committed by Claire
parent 17695ace33
commit 4da31b8263
1 changed files with 1 additions and 1 deletions

View File

@ -768,7 +768,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