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
pgxindbtesting.TimescaleDB, but usedbconninstead, because only that one respects theDB_STARTUP_TIMEOUTset 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.