Skip to content

Commit

Permalink
Rename test package to 'tests' and update .env file loading path in R…
Browse files Browse the repository at this point in the history
…edis setup
  • Loading branch information
SartajBhuvaji committed Nov 22, 2024
1 parent b59f49a commit 6abae4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/api_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package api_test
package tests

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion utils/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func ReverseString(s string) string {
}

func SetupRedis() (*database.RedisClient, error) {
err := godotenv.Load()
err := godotenv.Load("../.env")
if err != nil {
log.Fatalf("Error loading .env file: %v", err)
}
Expand Down

0 comments on commit 6abae4a

Please sign in to comment.