Commit edd90338 authored by vipwzw's avatar vipwzw Committed by 33cn

update test

parent ed7145f9
......@@ -16,6 +16,7 @@ import (
"github.com/33cn/chain33/queue"
"github.com/33cn/chain33/store"
"github.com/33cn/chain33/types"
"github.com/33cn/chain33/util"
"github.com/33cn/chain33/util/testnode"
"github.com/33cn/chain33/wallet"
"github.com/33cn/chain33/wallet/bipwallet"
......@@ -79,7 +80,7 @@ func (mock *testDataMock) init() {
func (mock *testDataMock) initMember() {
var q = queue.New("channel")
cfg, sub := testnode.GetDefaultConfig()
util.ResetDatadir(cfg, "$TEMP/")
wallet := wallet.New(cfg.Wallet, sub.Wallet)
wallet.SetQueueClient(q.Client())
mock.modules = append(mock.modules, wallet)
......
......@@ -15,6 +15,7 @@ import (
dbm "github.com/33cn/chain33/common/db"
"github.com/33cn/chain33/types"
"github.com/33cn/chain33/util"
"github.com/33cn/chain33/util/testnode"
pt "github.com/33cn/plugin/plugin/dapp/privacy/types"
"github.com/stretchr/testify/assert"
......@@ -22,6 +23,7 @@ import (
func createStore(t *testing.T) *privacyStore {
cfg, _ := testnode.GetDefaultConfig()
util.ResetDatadir(cfg, "$TEMP/")
cfgWallet := cfg.Wallet
walletStoreDB := dbm.NewDB("wallet", cfgWallet.Driver, cfgWallet.DbPath, cfgWallet.DbCache)
store := newStore(walletStoreDB)
......@@ -56,11 +58,6 @@ func TestPrivacyStore(t *testing.T) {
testStore_moveFTXO2UTXO(t)
testStore_unsetUTXO(t)
testStore_moveSTXO2FTXO(t)
testStore_moveFTXO2UTXOWhenFTXOExpire(t)
}
func testStore_moveFTXO2UTXOWhenFTXOExpire(t *testing.T) {
}
func testStore_moveSTXO2FTXO(t *testing.T) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment