🚨 Removed linter warnings in config package
This commit is contained in:
parent
99bc92794f
commit
bbfe24bb0b
|
@ -9,9 +9,10 @@ import (
|
|||
)
|
||||
|
||||
func TestGetString(t *testing.T) {
|
||||
v := viper.New()
|
||||
t.Parallel()
|
||||
|
||||
v.MergeConfigMap(map[string]interface{}{
|
||||
v := viper.New()
|
||||
_ = v.MergeConfigMap(map[string]interface{}{
|
||||
"testing": map[string]interface{}{
|
||||
"sample": "text",
|
||||
"answer": 42,
|
||||
|
@ -24,9 +25,10 @@ func TestGetString(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestGetInt(t *testing.T) {
|
||||
v := viper.New()
|
||||
t.Parallel()
|
||||
|
||||
v.MergeConfigMap(map[string]interface{}{
|
||||
v := viper.New()
|
||||
_ = v.MergeConfigMap(map[string]interface{}{
|
||||
"testing": map[string]interface{}{
|
||||
"answer": 42,
|
||||
},
|
||||
|
|
|
@ -11,6 +11,7 @@ import (
|
|||
"source.toby3d.me/website/oauth/internal/config/usecase"
|
||||
)
|
||||
|
||||
//nolint: gochecknoglobals
|
||||
var ucase config.UseCase
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user