Browse Source

finish the job, dummy

pull/1780/head
zramsay 7 years ago
parent
commit
831e10f15d
4 changed files with 6 additions and 6 deletions
  1. +3
    -3
      README.md
  2. +1
    -1
      example/example_test.go
  3. +1
    -1
      example/kvstore/helpers.go
  4. +1
    -1
      tests/test_cli/test.sh

+ 3
- 3
README.md View File

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


+ 1
- 1
example/example_test.go View File

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


+ 1
- 1
example/kvstore/helpers.go View File

@ -25,7 +25,7 @@ func RandVals(cnt int) []types.Validator {
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
// don't make any tx that modify the validator state
func InitKVStore(app *PersistentKVStoreApplication) {


+ 1
- 1
tests/test_cli/test.sh View File

@ -35,7 +35,7 @@ function testExample() {
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
echo ""


Loading…
Cancel
Save