Browse Source

update coverage

pull/139/head
yedf2 4 years ago
parent
commit
4d2b17b62b
  1. 7
      test/common_test.go

7
test/common_test.go

@ -3,7 +3,9 @@ package test
import (
"testing"
"github.com/dtm-labs/dtm/dtmcli"
"github.com/dtm-labs/dtm/dtmcli/dtmimp"
"github.com/dtm-labs/dtm/dtmgrpc"
"github.com/dtm-labs/dtm/dtmsvr/storage/sql"
"github.com/dtm-labs/dtm/dtmutil"
"github.com/stretchr/testify/assert"
@ -39,3 +41,8 @@ func testDbAlone(t *testing.T) {
_, err = dtmimp.DBExec(db, "select 1")
assert.NotEqual(t, nil, err)
}
func TestMustGenGid(t *testing.T) {
dtmgrpc.MustGenGid(dtmutil.DefaultGrpcServer)
dtmcli.MustGenGid(dtmutil.DefaultHttpServer)
}

Loading…
Cancel
Save