Move executor test setup code from TestT
to TestMain
#28440
Labels
type/enhancement
The issue or PR belongs to an enhancement.
TestT
to TestMain
#28440
Enhancement
As currently tests under
executor
packages are using bothpingcap/check
andtestify
, we should move the test setup code inTestT
tomain_test.go
to set up all of the tests written by both frameworks.tidb/executor/executor_test.go
Lines 89 to 111 in 76267b2
From my point of view, code related to
pingcap/check
can still be here, while code related totestleak
can be replaced bygoleak
enabled inTestMain
. All the other code will be better to move toTestMain
.The text was updated successfully, but these errors were encountered: