fix integration tests

This commit is contained in:
Jesse de Wit
2023-06-02 13:32:45 +02:00
parent 59f01bd30c
commit 057c5582c1

View File

@@ -191,6 +191,15 @@ func (l *lspBase) Initialize() error {
}
defer pgxPool.Close()
_, err = pgxPool.Exec(
l.harness.Ctx,
`DELETE FROM new_channel_params`,
)
if err != nil {
lntest.PerformCleanup(cleanups)
return fmt.Errorf("failed to delete new_channel_params: %w", err)
}
_, err = pgxPool.Exec(
l.harness.Ctx,
`INSERT INTO new_channel_params (validity, params)