send_test.go 426 B

12345678910111213141516171819202122232425
  1. package dao
  2. import (
  3. "context"
  4. "flag"
  5. "go-common/app/service/live/live-dm/conf"
  6. "path/filepath"
  7. "testing"
  8. )
  9. func init() {
  10. dir, _ := filepath.Abs("../cmd/test.toml")
  11. flag.Set("conf", dir)
  12. var err error
  13. if err = conf.Init(); err != nil {
  14. panic(err)
  15. }
  16. InitAPI()
  17. InitGrpc(conf.Conf)
  18. }
  19. //group=qa01 DEPLOY_ENV=uat go test -run TestIncrDMNum
  20. func TestIncrDMNum(t *testing.T) {
  21. IncrDMNum(context.TODO(), 5392, 2)
  22. }