SMQ-3095 - Improve test coverage in clients repository (#3156)

Signed-off-by: Felix Gateru <felix.gateru@gmail.com>
This commit is contained in:
Felix Gateru
2025-12-01 19:57:43 +03:00
committed by GitHub
parent 1a8d11acdd
commit b05ae65e24
2 changed files with 1008 additions and 6 deletions
File diff suppressed because it is too large Load Diff
+9 -3
View File
@@ -20,9 +20,11 @@ import (
)
var (
db *sqlx.DB
database pgclient.Database
tracer = otel.Tracer("repo_tests")
db *sqlx.DB
database pgclient.Database
ddatabase pgclient.Database
gdatabase pgclient.Database
tracer = otel.Tracer("repo_tests")
)
func TestMain(m *testing.M) {
@@ -89,6 +91,10 @@ func TestMain(m *testing.M) {
database = pgclient.NewDatabase(db, dbConfig, tracer)
ddatabase = pgclient.NewDatabase(db, dbConfig, tracer)
gdatabase = pgclient.NewDatabase(db, dbConfig, tracer)
code := m.Run()
// Defers will not be run when using os.Exit