Commit 277ec707 authored by Litian's avatar Litian Committed by 33cn

rebuild

parent cf9ad675
...@@ -7,14 +7,14 @@ package wallet_test ...@@ -7,14 +7,14 @@ package wallet_test
import ( import (
"testing" "testing"
_ "github.com/33cn/chain33/system"
"github.com/33cn/chain33/util/testnode" "github.com/33cn/chain33/util/testnode"
wcom "github.com/33cn/chain33/wallet/common"
_ "github.com/33cn/plugin/plugin"
ty "github.com/33cn/plugin/plugin/dapp/ticket/types" ty "github.com/33cn/plugin/plugin/dapp/ticket/types"
ticketwallet "github.com/33cn/plugin/plugin/dapp/ticket/wallet" ticketwallet "github.com/33cn/plugin/plugin/dapp/ticket/wallet"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
_ "github.com/33cn/chain33/system"
_ "github.com/33cn/plugin/plugin"
) )
func Test_WalletTicket(t *testing.T) { func Test_WalletTicket(t *testing.T) {
...@@ -22,6 +22,7 @@ func Test_WalletTicket(t *testing.T) { ...@@ -22,6 +22,7 @@ func Test_WalletTicket(t *testing.T) {
cfg, sub := testnode.GetDefaultConfig() cfg, sub := testnode.GetDefaultConfig()
cfg.Consensus.Name = "ticket" cfg.Consensus.Name = "ticket"
wcom.RegisterPolicy(ty.TicketX, ticketwallet.New())
mock33 := testnode.NewWithConfig(cfg, sub, nil) mock33 := testnode.NewWithConfig(cfg, sub, nil)
defer mock33.Close() defer mock33.Close()
err := mock33.WaitHeight(0) err := mock33.WaitHeight(0)
......
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