Skip to content
Snippets Groups Projects
Unverified Commit f9fef986 authored by Claire's avatar Claire Committed by GitHub
Browse files

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

parent ca061560
Branches
Tags
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment