mirror of
https://github.com/mastodon/mastodon.git
synced 2025-02-06 15:05:07 +00:00
Fix intermittent services/ap/process_status_update tags failure (#33695)
This commit is contained in:
parent
0885c31633
commit
51ecc7326f
|
@ -268,7 +268,7 @@ RSpec.describe ActivityPub::ProcessStatusUpdateService do
|
||||||
|
|
||||||
it 'updates tags and featured tags' do
|
it 'updates tags and featured tags' do
|
||||||
expect { subject.call(status, json, json) }
|
expect { subject.call(status, json, json) }
|
||||||
.to change { status.tags.reload.pluck(:name) }.from(%w(test foo)).to(%w(foo bar))
|
.to change { status.tags.reload.pluck(:name) }.from(contain_exactly('test', 'foo')).to(contain_exactly('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_present)
|
.and change { status.account.featured_tags.find_by(name: 'bar').last_status_at }.from(nil).to(be_present)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user