File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -238,7 +238,7 @@ func TestContext(t *testing.T) {
238238 _ , err := c .NewFromGin (newGinCtx (nil , false ))
239239 return err .Error ()
240240 },
241- expected : "failed to get user context" ,
241+ expected : model . ErrUserContextNotFound . Error () ,
242242 },
243243 {
244244 description : "NewFromGin returns error when context value has wrong type" ,
Original file line number Diff line number Diff line change @@ -8,9 +8,13 @@ import (
88 "github.com/stretchr/testify/assert"
99 "github.com/stretchr/testify/require"
1010 "github.com/tinyauthapp/tinyauth/internal/model"
11+ "github.com/tinyauthapp/tinyauth/internal/utils/logger"
1112)
1213
1314func TestKubernetesService (t * testing.T ) {
15+ log := logger .NewLogger ().WithTestConfig ()
16+ log .Init ()
17+
1418 type testCase struct {
1519 description string
1620 run func (t * testing.T , svc * KubernetesService )
@@ -179,6 +183,7 @@ func TestKubernetesService(t *testing.T) {
179183 ingressApps : make (map [ingressKey ][]ingressApp ),
180184 domainIndex : make (map [string ]ingressAppKey ),
181185 appNameIndex : make (map [string ]ingressAppKey ),
186+ log : log ,
182187 }
183188 test .run (t , svc )
184189 })
You can’t perform that action at this time.
0 commit comments