Fix list import concurrently creating lists of the same name (#26372)

This commit is contained in:
Claire
2023-08-07 17:59:20 +02:00
committed by GitHub
parent cd6f2b3cbc
commit 30c64bf616
2 changed files with 11 additions and 2 deletions

View File

@@ -161,6 +161,12 @@ RSpec.describe BulkImportRowService do
end
include_examples 'common behavior'
it 'does not create a new list' do
account.follow!(target_account)
expect { subject.call(import_row) }.to_not(change { List.where(title: 'my list').count })
end
end
end
end