Seed enrichment_attempts in common third party e2e
The enrichment_attempts column dropped its default after backfill, so inserts must supply it explicitly. The e2e seed helper omitted the column and tripped the NOT NULL constraint, failing TestThirdParty_ImportFromCommon and TestCommonThirdParties_QueryWithLogo. Set it to 0 in the seed insert. Signed-off-by: Émile Ré <emile@probo.com>
This commit is contained in:
@@ -80,11 +80,11 @@ func seedCommonThirdParty(t *testing.T, name string) gid.GID {
|
|||||||
|
|
||||||
_, err := conn.Exec(ctx, `
|
_, err := conn.Exec(ctx, `
|
||||||
INSERT INTO common_third_parties (
|
INSERT INTO common_third_parties (
|
||||||
id, name, slug, category, certifications, created_at, updated_at
|
id, name, slug, category, certifications, enrichment_attempts, created_at, updated_at
|
||||||
) VALUES (
|
) VALUES (
|
||||||
$1, $2, $3, $4, $5, $6, $7
|
$1, $2, $3, $4, $5, $6, $7, $8
|
||||||
)
|
)
|
||||||
`, id, name, slug, "OTHER", []string{}, now, now)
|
`, id, name, slug, "OTHER", []string{}, 0, now, now)
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
||||||
t.Cleanup(func() {
|
t.Cleanup(func() {
|
||||||
|
|||||||
Reference in New Issue
Block a user