fix: cleanup config KV parsing using madmin helpers (#15552)

This commit is contained in:
Aditya Manthramurthy
2022-08-18 15:55:17 -07:00
committed by GitHub
parent 895357607a
commit 21831b3fe2
4 changed files with 48 additions and 22 deletions
+1 -3
View File
@@ -19,8 +19,6 @@ package config
import (
"testing"
"github.com/minio/madmin-go"
)
func TestKVFields(t *testing.T) {
@@ -92,7 +90,7 @@ func TestKVFields(t *testing.T) {
for _, test := range tests {
test := test
t.Run("", func(t *testing.T) {
gotFields := madmin.KvFields(test.input, test.keys)
gotFields := kvFields(test.input, test.keys)
if len(gotFields) != len(test.expectedFields) {
t.Errorf("Expected keys %d, found %d", len(test.expectedFields), len(gotFields))
}