Commit 7d26a0e
authored
fix(pgtest): use t.Fatalf instead of t.Errorf for missing CL_DATABASE_URL (#21956)
pgtest.NewSqlxDB used t.Errorf (non-fatal) when CL_DATABASE_URL was
missing, then returned nil. This caused SIGSEGV panics in downstream
tests when they called methods on the nil *sqlx.DB.
Changing to t.Fatalf stops test execution immediately, preventing the
nil DB from propagating.
Fixes: CORE-23711 parent ae52d5a commit 7d26a0e
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
| 21 | + | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
0 commit comments