Fix test for import_contact

Depending on the number of test ran before this test, the sequence could
overlap with the existing ids and fail because the on conflict do update
would update multiple rows.
This commit is contained in:
jordi fita mas 2023-07-03 00:25:17 +02:00
parent 183b8d3ed9
commit 2320cae3f4
1 changed files with 2 additions and 0 deletions

View File

@ -90,6 +90,8 @@ values (12, 'ABNANL2A')
, (13, 'ARBNNL22') , (13, 'ARBNNL22')
; ;
-- make sure there is no overlap with selected id above when importing new contacts
alter sequence contact_contact_id_seq restart with 14;
select is( begin_import_contacts(), 'imported_contact', 'Should return the name of the relation to import' ); select is( begin_import_contacts(), 'imported_contact', 'Should return the name of the relation to import' );