Browse Source

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

pull/1368/head
Claire 1 year ago
parent
commit
53c3a56ac5
  1. 2
      spec/services/activitypub/process_status_update_service_spec.rb

2
spec/services/activitypub/process_status_update_service_spec.rb

@ -307,7 +307,7 @@ RSpec.describe ActivityPub::ProcessStatusUpdateService, type: :service 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

Loading…
Cancel
Save