Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
tiancaiamao committed Jan 3, 2024
1 parent dd443a7 commit cce19c4
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit cce19c4

Please sign in to comment.