From 0178ae2a3f1efb8d2f22879977193df2bb3ab721 Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Sun, 17 May 2026 21:10:44 +0200 Subject: [PATCH] WIP: Adding tests to the token controller Signed-off-by: Nikolai Rodionov --- Taskfile.yml | 2 ++ cmd/server.go | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Taskfile.yml b/Taskfile.yml index e8c147e..e071719 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -19,6 +19,8 @@ tasks: SOFTPLAYER_DB_CONNECTION_STRING: postgres://softplayer:qwertyu9@localhost:30432/softplayer?sslmode=disable SOFTPLAYER_REDIS_HOST: localhost:30379 cmd: go test ./... + deps: + - run-migrations-dev silent: true run-migrations-dev: diff --git a/cmd/server.go b/cmd/server.go index 487c5c0..afda1e7 100644 --- a/cmd/server.go +++ b/cmd/server.go @@ -98,9 +98,8 @@ func (cmd *Server) Run(ctx context.Context) error { } tokenCtrl := &controllers.TokenController{ - DB: db, - HashCost: cmd.HashCost, - Redis: rdb, + DB: db, + Redis: rdb, } accountCtrl := &controllers.AccountController{