Commit 3a7c3338 authored by mdj33's avatar mdj33 Committed by vipwzw

add ut hit

parent 7e5bee2c
...@@ -26,6 +26,7 @@ import ( ...@@ -26,6 +26,7 @@ import (
"github.com/33cn/chain33/types" "github.com/33cn/chain33/types"
typesmocks "github.com/33cn/chain33/types/mocks" typesmocks "github.com/33cn/chain33/types/mocks"
pt "github.com/33cn/plugin/plugin/dapp/paracross/types" pt "github.com/33cn/plugin/plugin/dapp/paracross/types"
"time"
) )
var random *rand.Rand var random *rand.Rand
...@@ -34,7 +35,7 @@ func init() { ...@@ -34,7 +35,7 @@ func init() {
types.Init("user.p.para.", nil) types.Init("user.p.para.", nil)
pp.Init("paracross", nil) pp.Init("paracross", nil)
random = rand.New(rand.NewSource(types.Now().UnixNano())) random = rand.New(rand.NewSource(types.Now().UnixNano()))
consensusInterval = 2 consensusInterval = 1
log.SetLogLevel("error") log.SetLogLevel("error")
} }
...@@ -184,7 +185,7 @@ func TestRunSuiteParaCommitMsg(t *testing.T) { ...@@ -184,7 +185,7 @@ func TestRunSuiteParaCommitMsg(t *testing.T) {
} }
func (s *suiteParaCommitMsg) TearDownSuite() { func (s *suiteParaCommitMsg) TearDownSuite() {
//time.Sleep(time.Second * 1) time.Sleep(time.Second * 2)
s.block.Close() s.block.Close()
s.para.Close() s.para.Close()
s.exec.Close() s.exec.Close()
......
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