mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-26 15:22:15 +00:00
finish the job, dummy
This commit is contained in:
parent
594db86069
commit
831e10f15d
@ -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
|
||||||
|
@ -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) {
|
||||||
|
@ -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) {
|
||||||
|
@ -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 ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user