Skip to content

Commit

Permalink
copr: add missing TestingT (#24224)
Browse files Browse the repository at this point in the history
  • Loading branch information
disksing authored Apr 23, 2021
1 parent f9d4af0 commit 5c338e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 0 additions & 4 deletions store/copr/coprocessor_cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,6 @@ func (s *testCoprocessorSuite) TestDisable(c *C) {
v = cache.CheckResponseAdmission(1024, time.Second*5)
c.Assert(v, Equals, false)

cache, err = newCoprCache(&config.CoprocessorCache{CapacityMB: 0.1, AdmissionMaxResultMB: 1})
c.Assert(err, NotNil)
c.Assert(cache, IsNil)

cache, err = newCoprCache(&config.CoprocessorCache{CapacityMB: 0.001})
c.Assert(err, NotNil)
c.Assert(cache, IsNil)
Expand Down
6 changes: 6 additions & 0 deletions store/copr/coprocessor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ package copr

import (
"context"
"testing"

. "github.com/pingcap/check"
"github.com/pingcap/tidb/kv"
Expand All @@ -23,6 +24,11 @@ import (
"github.com/pingcap/tidb/store/tikv/mockstore/mocktikv"
)

func TestT(t *testing.T) {
CustomVerboseFlag = true
TestingT(t)
}

type testCoprocessorSuite struct {
}

Expand Down

0 comments on commit 5c338e2

Please sign in to comment.