Commit 893f8745 authored by 张振华's avatar 张振华

add rpc test cases for guess

parent 8560f422
...@@ -340,7 +340,7 @@ function rpc_test() { ...@@ -340,7 +340,7 @@ function rpc_test() {
dapp_test_rpc "http://${1}:8801" dapp_test_rpc "http://${1}:8801"
fi fi
if [ "$DAPP" == "paracross" ]; then if [ "$DAPP" == "paracross" ]; then
#system_test_rpc "http://${1}:8901" system_test_rpc "http://${1}:8901"
dapp_test_rpc "http://${1}:8901" dapp_test_rpc "http://${1}:8901"
fi fi
...@@ -365,7 +365,8 @@ function main() { ...@@ -365,7 +365,8 @@ function main() {
dapp_run config dapp_run config
### test cases ### ### test cases ###
ip=$(${CLI} net info | jq -r ".externalAddr[0:10]") ip=$(${CLI} net info | jq -r ".externalAddr")
ip=`echo $ip|cut -d':' -f 1`
dapp_run test "${ip}" dapp_run test "${ip}"
### rpc test ### ### rpc test ###
......
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
This diff is collapsed.
...@@ -47,6 +47,11 @@ func GetName() string { ...@@ -47,6 +47,11 @@ func GetName() string {
return newGuessGame().GetName() return newGuessGame().GetName()
} }
//ExecutorOrder Exec 的时候 同时执行 ExecLocal
func (g *Guess) ExecutorOrder() int64 {
return drivers.ExecLocalSameTime
}
//GetDriverName 获取Guess执行器的名称 //GetDriverName 获取Guess执行器的名称
func (g *Guess) GetDriverName() string { func (g *Guess) GetDriverName() string {
return gty.GuessX return gty.GuessX
......
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