diff --git a/.gitignore b/.gitignore index cc75835f..4956a705 100644 --- a/.gitignore +++ b/.gitignore @@ -52,5 +52,3 @@ dependency-graph.png *.aux *.out *.synctex.gz -cmd -/cmd/ diff --git a/cmd/terrad/config_test.go b/cmd/terrad/config_test.go new file mode 100644 index 00000000..0b5fd9a2 --- /dev/null +++ b/cmd/terrad/config_test.go @@ -0,0 +1,15 @@ +package main + +import ( + "testing" + + "github.com/stretchr/testify/require" +) + +func TestOverrideConfigCacheSize(t *testing.T) { + _, cfg := initAppConfig() + terraCfg, ok := cfg.(TerraAppConfig) + require.Equal(t, ok, true) + require.Equal(t, terraCfg.Config.IAVLCacheSize, uint64(DefaultIAVLCacheSize)) + require.Equal(t, terraCfg.Config.IAVLDisableFastNode, IavlDisablefastNodeDefault) +}