Browse Source

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

pull/1368/head
Matt Jankowski 1 year ago committed by Claire
parent
commit
5768cce8ff
  1. 2
      spec/lib/activitypub/activity/create_spec.rb

2
spec/lib/activitypub/activity/create_spec.rb

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