From 5768cce8ff503705b1fa686fd2d3da3228ad0d63 Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Thu, 2 Jan 2025 03:38:22 -0500 Subject: [PATCH] Fix intermittent failure on ap/activity/create spec timestamp check (#33406) --- spec/lib/activitypub/activity/create_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/lib/activitypub/activity/create_spec.rb b/spec/lib/activitypub/activity/create_spec.rb index f905d894a..bf88027cf 100644 --- a/spec/lib/activitypub/activity/create_spec.rb +++ b/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