make environment variable interpolation preprocessor optional (#1715)

This commit is contained in:
Colin Hoglund
2020-07-06 15:13:35 -04:00
committed by GitHub
parent 97ae2979ad
commit 90dca65f55
5 changed files with 62 additions and 12 deletions

View File

@@ -4,6 +4,7 @@ import (
"reflect"
"testing"
"github.com/micro/go-micro/v2/config/reader"
"github.com/micro/go-micro/v2/config/source"
)
@@ -32,7 +33,7 @@ func TestValues(t *testing.T) {
for idx, test := range testData {
values, err := newValues(&source.ChangeSet{
Data: test.csdata,
})
}, reader.Options{})
if err != nil {
t.Fatal(err)
}
@@ -69,7 +70,7 @@ func TestStructArray(t *testing.T) {
for idx, test := range testData {
values, err := newValues(&source.ChangeSet{
Data: test.csdata,
})
}, reader.Options{})
if err != nil {
t.Fatal(err)
}