1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-08-04 21:42:57 +02:00

break config.Get and return error with value

This commit is contained in:
asim
2025-05-04 21:31:17 +01:00
parent 60474ed38f
commit 2388f662cf
9 changed files with 44 additions and 20 deletions

View File

@@ -36,7 +36,9 @@ func TestReader(t *testing.T) {
}
for _, test := range testData {
if v := values.Get(test.path...).String(""); v != test.value {
if v, err := values.Get(test.path...); err != nil {
t.Fatal(err)
} else if v.String("") != test.value {
t.Fatalf("Expected %s got %s for path %v", test.value, v, test.path)
}
}