Fix flake: wait for codeinsights-db.sh to startup in CI
Created by: mrnugget
More info in ticket: #25285 (closed)
This does two things:
- Do not use
pgx
indbtesting.TimescaleDB
, but usedbconn
instead, because only that one respects theDB_STARTUP_TIMEOUT
set ingo-test.sh
, which is executed in CI. - Switch from
t.Fail
, which marks the test as failed but continues execution, tot.FailNow
, which marks the test as failed and stops execution. That fixes the nil-pointer panic in case the database connection couldn't be established.