finish the job, dummy

This commit is contained in:
zramsay 2018-02-19 20:43:36 +00:00
parent 594db86069
commit 831e10f15d
4 changed files with 6 additions and 6 deletions

View File

@ -133,10 +133,10 @@ func cmdKVStore(cmd *cobra.Command, args []string) error {
// Create the application - in memory or persisted to disk // Create the application - in memory or persisted to disk
var app types.Application var app types.Application
if flagPersist == "" { if flagPersist == "" {
app = dummy.NewKVStoreApplication() app = kvstore.NewKVStoreApplication()
} else { } else {
app = dummy.NewPersistentKVStoreApplication(flagPersist) app = kvstore.NewPersistentKVStoreApplication(flagPersist)
app.(*dummy.PersistentKVStoreApplication).SetLogger(logger.With("module", "kvstore")) app.(*kvstore.PersistentKVStoreApplication).SetLogger(logger.With("module", "kvstore"))
} }
// Start the listener // Start the listener

View File

@ -23,7 +23,7 @@ import (
func TestKVStore(t *testing.T) { func TestKVStore(t *testing.T) {
fmt.Println("### Testing KVStore") fmt.Println("### Testing KVStore")
testStream(t, dummy.NewKVStoreApplication()) testStream(t, kvstore.NewKVStoreApplication())
} }
func TestBaseApp(t *testing.T) { func TestBaseApp(t *testing.T) {

View File

@ -25,7 +25,7 @@ func RandVals(cnt int) []types.Validator {
return res return res
} }
// InitKVStore initializes the dummy app with some data, // InitKVStore initializes the kvstore app with some data,
// which allows tests to pass and is fine as long as you // which allows tests to pass and is fine as long as you
// don't make any tx that modify the validator state // don't make any tx that modify the validator state
func InitKVStore(app *PersistentKVStoreApplication) { func InitKVStore(app *PersistentKVStoreApplication) {

View File

@ -35,7 +35,7 @@ function testExample() {
rm "${INPUT}".out.new rm "${INPUT}".out.new
} }
testExample 1 tests/test_cli/ex1.abci abci-cli dummy testExample 1 tests/test_cli/ex1.abci abci-cli kvstore
testExample 2 tests/test_cli/ex2.abci abci-cli counter testExample 2 tests/test_cli/ex2.abci abci-cli counter
echo "" echo ""