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

pull/33428/head
Matt Jankowski 2 months ago committed by GitHub
parent 7c50e53baa
commit 441dcd7396
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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

Loading…
Cancel
Save