WIP: Adding tests to the token controller
All checks were successful
ci/woodpecker/push/build Pipeline was successful
All checks were successful
ci/woodpecker/push/build Pipeline was successful
Signed-off-by: Nikolai Rodionov <iam@allanger.xyz>
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user