mirror of
https://github.com/pgsty/minio.git
synced 2026-07-26 15:36:16 +03:00
fix: cleanup config KV parsing using madmin helpers (#15552)
This commit is contained in:
committed by
GitHub
parent
895357607a
commit
21831b3fe2
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user