fix: update db tests with proper env loading
This commit is contained in:
parent
0e5c93ec6c
commit
029fce39ce
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue