@@ -53,7 +53,7 @@ func TestSignedAutoid(t *testing.T) {
53
53
require .NoError (t , failpoint .Disable ("github.com/pingcap/tidb/pkg/meta/autoid/mockAutoIDChange" ))
54
54
}()
55
55
56
- store , err := mockstore .NewMockStore ()
56
+ store , err := mockstore .NewMockStore (mockstore . WithStoreType ( mockstore . EmbedUnistore ) )
57
57
require .NoError (t , err )
58
58
defer func () {
59
59
err := store .Close ()
@@ -258,7 +258,7 @@ func TestUnsignedAutoid(t *testing.T) {
258
258
require .NoError (t , failpoint .Disable ("github.com/pingcap/tidb/pkg/meta/autoid/mockAutoIDChange" ))
259
259
}()
260
260
261
- store , err := mockstore .NewMockStore ()
261
+ store , err := mockstore .NewMockStore (mockstore . WithStoreType ( mockstore . EmbedUnistore ) )
262
262
require .NoError (t , err )
263
263
defer func () {
264
264
err := store .Close ()
@@ -416,7 +416,7 @@ func TestUnsignedAutoid(t *testing.T) {
416
416
// TestConcurrentAlloc is used for the test that
417
417
// multiple allocators allocate ID with the same table ID concurrently.
418
418
func TestConcurrentAlloc (t * testing.T ) {
419
- store , err := mockstore .NewMockStore ()
419
+ store , err := mockstore .NewMockStore (mockstore . WithStoreType ( mockstore . EmbedUnistore ) )
420
420
require .NoError (t , err )
421
421
defer func () {
422
422
err := store .Close ()
@@ -507,7 +507,7 @@ func TestConcurrentAlloc(t *testing.T) {
507
507
// TestRollbackAlloc tests that when the allocation transaction commit failed,
508
508
// the local variable base and end doesn't change.
509
509
func TestRollbackAlloc (t * testing.T ) {
510
- store , err := mockstore .NewMockStore ()
510
+ store , err := mockstore .NewMockStore (mockstore . WithStoreType ( mockstore . EmbedUnistore ) )
511
511
require .NoError (t , err )
512
512
defer func () {
513
513
err := store .Close ()
@@ -558,7 +558,7 @@ func TestAllocComputationIssue(t *testing.T) {
558
558
require .NoError (t , failpoint .Disable ("github.com/pingcap/tidb/pkg/meta/autoid/mockAutoIDCustomize" ))
559
559
}()
560
560
561
- store , err := mockstore .NewMockStore ()
561
+ store , err := mockstore .NewMockStore (mockstore . WithStoreType ( mockstore . EmbedUnistore ) )
562
562
require .NoError (t , err )
563
563
defer func () {
564
564
err := store .Close ()
@@ -609,7 +609,7 @@ func TestAllocComputationIssue(t *testing.T) {
609
609
}
610
610
611
611
func TestIssue40584 (t * testing.T ) {
612
- store , err := mockstore .NewMockStore ()
612
+ store , err := mockstore .NewMockStore (mockstore . WithStoreType ( mockstore . EmbedUnistore ) )
613
613
require .NoError (t , err )
614
614
defer func () {
615
615
err := store .Close ()
0 commit comments