fix test by setting default luashareddicts
This commit is contained in:
parent
6a293c7e11
commit
94052b1bfc
1 changed files with 2 additions and 0 deletions
|
@ -124,6 +124,7 @@ func TestMergeConfigMapToStruct(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
def = config.NewDefault()
|
def = config.NewDefault()
|
||||||
|
def.LuaSharedDicts = map[string]int{"configuration_data": 20, "certificate_data": 20}
|
||||||
def.DisableIpv6DNS = true
|
def.DisableIpv6DNS = true
|
||||||
|
|
||||||
hash, err = hashstructure.Hash(def, &hashstructure.HashOptions{
|
hash, err = hashstructure.Hash(def, &hashstructure.HashOptions{
|
||||||
|
@ -142,6 +143,7 @@ func TestMergeConfigMapToStruct(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
def = config.NewDefault()
|
def = config.NewDefault()
|
||||||
|
def.LuaSharedDicts = map[string]int{"configuration_data": 20, "certificate_data": 20}
|
||||||
def.WhitelistSourceRange = []string{"1.1.1.1/32"}
|
def.WhitelistSourceRange = []string{"1.1.1.1/32"}
|
||||||
def.DisableIpv6DNS = true
|
def.DisableIpv6DNS = true
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue