Fix intermittent failure on ap/activity/update spec timestamp check (#33425)

This commit is contained in:
Claire 2025-01-02 10:17:49 +01:00 committed by GitHub
parent ca06156087
commit f9fef9864a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -271,7 +271,7 @@ RSpec.describe ActivityPub::ProcessStatusUpdateService do
.to change { status.tags.reload.pluck(:name) }.from(%w(test foo)).to(%w(foo bar)) .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: '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').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
end end