MustCloseSQLDB closes a database/sql DB.
(tb testing.TB, d *sql.DB)
| 219 | |
| 220 | // MustCloseSQLDB closes a database/sql DB. |
| 221 | func MustCloseSQLDB(tb testing.TB, d *sql.DB) { |
| 222 | tb.Helper() |
| 223 | if err := d.Close(); err != nil { |
| 224 | tb.Fatal(err) |
| 225 | } |
| 226 | } |
| 227 | |
| 228 | // NewReplicaClient returns a new client for integration testing by type name. |
| 229 | func NewReplicaClient(tb testing.TB, typ string) litestream.ReplicaClient { |