fix: update db tests with proper env loading

This commit is contained in:
Tiago Yamamoto 2025-12-18 08:20:19 -03:00
parent 0e5c93ec6c
commit 029fce39ce

View file

@ -18,6 +18,7 @@ func TestDatabaseConnection(t *testing.T) {
}
// Simple .env loader for testing purposes
// Try loading from project root (3 levels up from this file)
if content, err := os.ReadFile("../../../.env"); err == nil {
for _, line := range strings.Split(string(content), "\n") {
parts := strings.SplitN(line, "=", 2)