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:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user