Commit 724f7496 authored by pengjun's avatar pengjun

#484 update dpos unit test

parent c638029a
...@@ -168,7 +168,7 @@ func DposPerf() { ...@@ -168,7 +168,7 @@ func DposPerf() {
dposClient := cs.(*Client) dposClient := cs.(*Client)
dposClient.csState.QueryCycleBoundaryInfo(task.Cycle) dposClient.csState.QueryCycleBoundaryInfo(task.Cycle)
dposClient.csState.GetCBInfoByCircle(task.Cycle) //dposClient.csState.GetCBInfoByCircle(task.Cycle)
dposClient.csState.QueryVrf(pubkey, task.Cycle) dposClient.csState.QueryVrf(pubkey, task.Cycle)
dposClient.csState.QueryVrfs(dposClient.csState.validatorMgr.Validators, task.Cycle) dposClient.csState.QueryVrfs(dposClient.csState.validatorMgr.Validators, task.Cycle)
dposClient.csState.GetVrfInfoByCircle(task.Cycle, VrfQueryTypeM) dposClient.csState.GetVrfInfoByCircle(task.Cycle, VrfQueryTypeM)
...@@ -200,12 +200,12 @@ func DposPerf() { ...@@ -200,12 +200,12 @@ func DposPerf() {
fmt.Println("Verify CB failed.") fmt.Println("Verify CB failed.")
} }
fmt.Println("=======start GetCBInfoByCircle!=======") //fmt.Println("=======start GetCBInfoByCircle!=======")
//first time, not hit ////first time, not hit
dposClient.csState.GetCBInfoByCircle(task.Cycle) //dposClient.csState.GetCBInfoByCircle(task.Cycle)
time.Sleep(1 * time.Second) //time.Sleep(1 * time.Second)
//second time, hit cache ////second time, hit cache
dposClient.csState.GetCBInfoByCircle(task.Cycle) //dposClient.csState.GetCBInfoByCircle(task.Cycle)
fmt.Println("=======start VoteVerify!=======") fmt.Println("=======start VoteVerify!=======")
vote := generateVote(dposClient.csState) vote := generateVote(dposClient.csState)
......
...@@ -13,7 +13,7 @@ func TestTicker(t *testing.T) { ...@@ -13,7 +13,7 @@ func TestTicker(t *testing.T) {
ticker.Start() ticker.Start()
ti := timeoutInfo{ ti := timeoutInfo{
Duration: time.Second * time.Duration(2), Duration: time.Second * time.Duration(3),
State: InitStateType, State: InitStateType,
} }
fmt.Println("timeoutInfo:", ti.String()) fmt.Println("timeoutInfo:", ti.String())
......
...@@ -325,7 +325,7 @@ function run_test() { ...@@ -325,7 +325,7 @@ function run_test() {
trade_getSellOrder trade_getSellOrder
trade_createBuyTx trade_createBuyTx
trade_getBuyOrder trade_getBuyOrder
#trade_statusBuyOrder trade_statusBuyOrder
trade_statusOrder trade_statusOrder
trade_statusSellOrder trade_statusSellOrder
......
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