Browse Source

update result link

pull/343/head
yedf2 4 years ago
parent
commit
d83ed69a98
  1. 2
      dtmsvr/trans_status.go
  2. 2
      test/busi/base_http.go

2
dtmsvr/trans_status.go

@ -207,7 +207,7 @@ func (t *TransGlobal) getBranchResult(branch *TransBranch) (string, error) {
} else if errors.Is(err, dtmcli.ErrOngoing) {
return "", dtmcli.ErrOngoing
}
return "", fmt.Errorf("http/grpc result should be specified as in:\nhttps://dtm.pub/summary/arch.html#http\nunkown result will be retried: %s", err)
return "", fmt.Errorf("Your http/grpc result should be specified as in:\nhttp://d.dtm.pub/practice/arch.html#proto\nunkown result will be retried: %s", err)
}
func (t *TransGlobal) execBranch(branch *TransBranch, branchPos int) error {

2
test/busi/base_http.go

@ -216,7 +216,7 @@ func BaseAddRoute(app *gin.Engine) {
app.POST(BusiAPI+"/TransInRetry", dtmutil.WrapHandler(func(c *gin.Context) interface{} {
if retryNums != 0 {
retryNums--
return dtmcli.ErrOngoing
return fmt.Errorf(("should be retried"))
}
retryNums = 3
return nil

Loading…
Cancel
Save