Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testkit,store/mockstore: make store image to accelerate unit test #42521

Merged
merged 27 commits into from
Jan 5, 2024
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
105426b
testkit,store/mockstore: make store image to accelerate unit test
tiancaiamao Mar 23, 2023
39220a9
tiny clean up
tiancaiamao Mar 23, 2023
70ac665
fix build
tiancaiamao Mar 23, 2023
8b5973f
fix build
tiancaiamao Mar 23, 2023
d0c02d2
fix CI
tiancaiamao Mar 24, 2023
550eeb3
Merge branch 'master' into issue-42434
tiancaiamao Mar 29, 2023
d8e303e
fix some test cases
tiancaiamao Mar 31, 2023
ce31edd
make bazel_prepare
tiancaiamao Mar 31, 2023
e9ef16d
Merge branch 'master' into issue-42434
tiancaiamao Apr 3, 2023
b889d02
fix test
tiancaiamao Apr 3, 2023
6e83733
Merge branch 'master' into issue-42434
tiancaiamao Apr 13, 2023
8582e48
Merge branch 'master' into issue-42434
tiancaiamao Apr 19, 2023
17f37ef
Merge branch 'master' into issue-42434
tiancaiamao Apr 19, 2023
4b1007f
Merge branch 'master' into issue-42434
tiancaiamao Apr 20, 2023
747eebe
Merge branch 'master' into issue-42434
tiancaiamao Jun 12, 2023
12e8756
resolve conflict
tiancaiamao Jun 12, 2023
a2d5f26
Merge branch 'master' into issue-42434
tiancaiamao Sep 4, 2023
7870d6b
make bazel_prepare
tiancaiamao Sep 4, 2023
54679f0
make fmt
tiancaiamao Sep 4, 2023
d8ad393
Merge branch 'master' into issue-42434
tiancaiamao Dec 31, 2023
fe94751
fix build
tiancaiamao Jan 1, 2024
6e6239a
resolve confict
tiancaiamao Jan 2, 2024
b2a94fd
Merge branch 'master' into issue-42434
tiancaiamao Jan 3, 2024
943064a
fix ci
tiancaiamao Jan 3, 2024
dd443a7
fix CI
tiancaiamao Jan 3, 2024
cce19c4
fix build
tiancaiamao Jan 3, 2024
52ecfbb
Merge branch 'master' into issue-42434
tiancaiamao Jan 5, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix build
  • Loading branch information
tiancaiamao committed Jan 3, 2024
commit cce19c40293881b724629202ebd8fb8c21decbd1
4 changes: 2 additions & 2 deletions pkg/session/test/session_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1015,13 +1015,13 @@ insert into test.t values ("abc"); -- invalid statement
session.DisableRunBootstrapSQLFileInTest()

// Bootstrap with the second sql file, which would not been executed.
store, err = mockstore.NewMockStore()
store, err = mockstore.NewMockStore(mockstore.WithStoreType(mockstore.EmbedUnistore))
require.NoError(t, err)
defer func() {
require.NoError(t, store.Close())
}()
config.GetGlobalConfig().InitializeSQLFile = sqlFiles[1].Name()
dom, err = session.BootstrapSession(store, mockstore.WithStoreType(mockstore.EmbedUnistore))
dom, err = session.BootstrapSession(store)
require.NoError(t, err)
se := session.CreateSessionAndSetID(t, store)
ctx := context.Background()
Expand Down