Skip to content

Commit

Permalink
test: add test override config cache size (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
tnv1 authored Nov 27, 2024
1 parent 760062b commit 1875d99
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,3 @@ dependency-graph.png
*.aux
*.out
*.synctex.gz
cmd
/cmd/
15 changes: 15 additions & 0 deletions cmd/terrad/config_test.go
Original file line number Diff line number Diff line change
@@ -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)
}

0 comments on commit 1875d99

Please sign in to comment.