Browse Source

cover OnAfterResponse

pull/145/head
yedf2 4 years ago
parent
commit
aae384e597
  1. 2
      test/main_test.go

2
test/main_test.go

@ -17,6 +17,7 @@ import (
"github.com/dtm-labs/dtm/dtmsvr"
"github.com/dtm-labs/dtm/dtmsvr/config"
"github.com/dtm-labs/dtm/test/busi"
"github.com/go-resty/resty/v2"
)
func exitIf(code int) {
@ -36,6 +37,7 @@ func TestMain(m *testing.M) {
dtmgrpc.AddUnaryInterceptor(busi.SetGrpcHeaderForHeadersYes)
dtmcli.OnBeforeRequest(busi.SetHttpHeaderForHeadersYes)
dtmcli.OnAfterResponse(func(c *resty.Client, resp *resty.Response) error { return nil })
tenv := os.Getenv("TEST_STORE")
if tenv == "boltdb" {

Loading…
Cancel
Save