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

pull/34005/head
Matt Jankowski 2 months ago committed by Claire
parent a251eb57d3
commit 5768cce8ff

@ -732,7 +732,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…
Cancel
Save