Skip to content

Commit

Permalink
test script
Browse files Browse the repository at this point in the history
  • Loading branch information
skiffer-git committed Nov 3, 2021
1 parent 838137e commit a0f8df8
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 91 deletions.
10 changes: 5 additions & 5 deletions test/common.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
uidCount=7
messageCount=100
messageCount=10000

cmd1num=1
cmd2num=1
Expand All @@ -8,7 +8,7 @@ cmd4num=1
cmd5num=1
cmd6num=1
cmd7num=1
APIADDR="http://1.14.194.38:10000"
WSADDR="ws://1.14.194.38:17778"
REGISTERADDR="http://1.14.194.38:10000/auth/user_register"
TOKENADDR="http://1.14.194.38:10000/auth/user_token"
APIADDR="http://127.0.0.1:10000"
WSADDR="ws://127.0.0.1:17778"
REGISTERADDR="http://127.0.0.1:10000/auth/user_register"
TOKENADDR="http://127.0.0.1:10000/auth/user_token"
5 changes: 3 additions & 2 deletions test/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ var (
// myuid, maxuid, msgnum
func main() {

cmdfile := "./cmd.txt"
//cmdfile := "./cmd.txt"
uid := flag.Int("uid", 1, "RpcToken default listen port 10800")
uidCount := flag.Int("uid_count", 2, "RpcToken default listen port 10800")
messageCount := flag.Int("message_count", 1, "RpcToken default listen port 10800")
Expand All @@ -350,7 +350,8 @@ func main() {
runRigister(strMyUid)
token := runGetToken(strMyUid)

cmd := GetCmd(myUid, cmdfile)
//cmd := GetCmd(myUid, cmdfile)
cmd := 2

fmt.Println("getcmd value ", cmd)
switch cmd {
Expand Down
55 changes: 0 additions & 55 deletions test/test.sh

This file was deleted.

8 changes: 0 additions & 8 deletions test/test2.sh

This file was deleted.

10 changes: 0 additions & 10 deletions test/test3.sh

This file was deleted.

11 changes: 0 additions & 11 deletions test/test4.sh

This file was deleted.

0 comments on commit a0f8df8

Please sign in to comment.