From f9fef9864a40a1ae78f21fbb3740bdebb99ce7df Mon Sep 17 00:00:00 2001
From: Claire <claire.github-309c@sitedethib.com>
Date: Thu, 2 Jan 2025 10:17:49 +0100
Subject: [PATCH] Fix intermittent failure on ap/activity/update spec timestamp
 check (#33425)

---
 spec/services/activitypub/process_status_update_service_spec.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/spec/services/activitypub/process_status_update_service_spec.rb b/spec/services/activitypub/process_status_update_service_spec.rb
index 176af7d432..1a8ea2d170 100644
--- a/spec/services/activitypub/process_status_update_service_spec.rb
+++ b/spec/services/activitypub/process_status_update_service_spec.rb
@@ -271,7 +271,7 @@ RSpec.describe ActivityPub::ProcessStatusUpdateService do
           .to change { status.tags.reload.pluck(:name) }.from(%w(test foo)).to(%w(foo bar))
           .and change { status.account.featured_tags.find_by(name: 'test').statuses_count }.by(-1)
           .and change { status.account.featured_tags.find_by(name: 'bar').statuses_count }.by(1)
-          .and change { status.account.featured_tags.find_by(name: 'bar').last_status_at }.from(nil).to(be_within(0.1).of(Time.now.utc))
+          .and change { status.account.featured_tags.find_by(name: 'bar').last_status_at }.from(nil).to(be_present)
       end
     end
 
-- 
GitLab