🚨 Removed linter warnings in config package

This commit is contained in:
Maxim Lebedev 2021-09-25 20:26:24 +05:00
parent 99bc92794f
commit bbfe24bb0b
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
2 changed files with 7 additions and 4 deletions

View File

@ -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,
},

View File

@ -11,6 +11,7 @@ import (
"source.toby3d.me/website/oauth/internal/config/usecase"
)
//nolint: gochecknoglobals
var ucase config.UseCase
func TestMain(m *testing.M) {