WIP: Adding tests to the token controller
All checks were successful
ci/woodpecker/push/build Pipeline was successful

Signed-off-by: Nikolai Rodionov <iam@allanger.xyz>
This commit is contained in:
2026-05-17 21:10:44 +02:00
parent 1d377b916c
commit 0178ae2a3f
2 changed files with 4 additions and 3 deletions

View File

@@ -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:

View File

@@ -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{