Skip to content

remove testleak utilities#171

Merged
disksing merged 1 commit intotikv:masterfrom
disksing:leaktest
Jun 25, 2021
Merged

remove testleak utilities#171
disksing merged 1 commit intotikv:masterfrom
disksing:leaktest

Conversation

@disksing
Copy link
Collaborator

@disksing disksing commented Jun 25, 2021

Signed-off-by: disksing i@disksing.com

Remove testleak as we are going to use goleak #169
pingcap/check dependency is also finally resolved. Fix #97

Signed-off-by: disksing <i@disksing.com>
}

func TestKVGetSet(t *testing.T) {
defer testleak.AfterTestT(t)()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whether we just replace with defer goleak.VerifyNone(t) in this pass?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding in each Test is a bit tedious, I am going to add goleak in each package's TestMain. Please wait for my subsequent PR.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well. Given leak tests don't in used actually. I'm ok with this.

@disksing disksing merged commit 327a48b into tikv:master Jun 25, 2021
@disksing disksing deleted the leaktest branch June 25, 2021 03:08
tiancaiamao pushed a commit to tiancaiamao/client-go that referenced this pull request Jul 8, 2021
Signed-off-by: disksing <i@disksing.com>
Signed-off-by: tiancaiamao <tiancaiamao@gmail.com>
daimashusheng pushed a commit to daimashusheng/client-go that referenced this pull request Sep 2, 2021
Signed-off-by: disksing <i@disksing.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace github.com/pingcap/check with https://github.com/stretchr/testify

2 participants