File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
tests/realtikvtest/addindextest1 Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -48,15 +48,6 @@ func init() {
48
48
}
49
49
50
50
func TestAddIndexDistBasic (t * testing.T ) {
51
- var wg sync.WaitGroup
52
- wg .Add (1 )
53
- dumpChan := make (chan struct {})
54
- defer func () {
55
- close (dumpChan )
56
- wg .Wait ()
57
- }()
58
- go testkit .DebugDumpOnTimeout (& wg , dumpChan , 7 * time .Minute )
59
-
60
51
// mock that we only have 1 cpu, add-index task can be scheduled as usual
61
52
require .NoError (t , failpoint .Enable ("github.com/pingcap/tidb/pkg/util/cpu/mockNumCpu" , `return(1)` ))
62
53
require .NoError (t , failpoint .Enable ("github.com/pingcap/tidb/pkg/disttask/framework/storage/testSetLastTaskID" , `return(true)` ))
@@ -163,6 +154,15 @@ func TestAddIndexDistCancel(t *testing.T) {
163
154
}
164
155
165
156
func TestAddIndexDistPauseAndResume (t * testing.T ) {
157
+ var wg sync.WaitGroup
158
+ wg .Add (1 )
159
+ dumpChan := make (chan struct {})
160
+ defer func () {
161
+ close (dumpChan )
162
+ wg .Wait ()
163
+ }()
164
+ go testkit .DebugDumpOnTimeout (& wg , dumpChan , 1 * time .Minute )
165
+
166
166
store , dom := realtikvtest .CreateMockStoreAndDomainAndSetup (t )
167
167
if store .Name () != "TiKV" {
168
168
t .Skip ("TiKV store only" )
You can’t perform that action at this time.
0 commit comments