main_dev_11002_test.go 509 B

1234567891011121314151617181920212223242526272829
  1. package main
  2. import (
  3. "f1-game/tool/client-cli/cli"
  4. "sync"
  5. "testing"
  6. )
  7. func TestDev_11002(t *testing.T) {
  8. var (
  9. url = "http://172.16.124.91"
  10. addr = "172.16.124.91:21000"
  11. gameNodeID = "11002"
  12. userAndPwd = "nico500"
  13. pid = "2188001"
  14. )
  15. cli.RegisterDevAccount(url, userAndPwd, userAndPwd)
  16. wg := &sync.WaitGroup{}
  17. wg.Add(1)
  18. robot := cli.EnterServer(url, pid, userAndPwd, userAndPwd, addr, gameNodeID, true)
  19. if robot != nil {
  20. robot.ChargeCreate(80006)
  21. }
  22. wg.Wait()
  23. }