Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
realhugn committed Sep 25, 2024
1 parent 96768a2 commit 1dd221a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.env
3 changes: 2 additions & 1 deletion tinyURL/tests/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ func TestTinyURLIntegration(t *testing.T) {
if err != nil {
log.Fatalf("Failed to initialize database: %v", err)
}
redisClient, _ := database.NewRedisCache(cfg)

urlRepo := repository.NewURLRepository(db)
urlService := service.NewURLService(urlRepo)
urlService := service.NewURLService(urlRepo, redisClient)
urlHandler := handlers.NewURLHandler(urlService)

router := gin.Default()
Expand Down

0 comments on commit 1dd221a

Please sign in to comment.