Skip to content

Commit

Permalink
fix ut TestBackfillOperators
Browse files Browse the repository at this point in the history
  • Loading branch information
tangenta committed Apr 16, 2024
1 parent 7468d06 commit ad1f379
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/realtikvtest/addindextest3/operator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,14 @@ func TestBackfillOperators(t *testing.T) {
srcChkPool := make(chan *chunk.Chunk, regionCnt*2)
pTbl := tbl.(table.PhysicalTable)
index := tables.NewIndex(pTbl.GetPhysicalID(), tbl.Meta(), idxInfo)
mockBackendCtx := &ingest.MockBackendCtx{}
mockEngine := ingest.NewMockEngineInfo(nil)
mockEngine.SetHook(onWrite)

src := newTestSource(chunkResults...)
reorgMeta := ddl.NewDDLReorgMeta(tk.Session())
ingestOp := ddl.NewIndexIngestOperator(
opCtx, copCtx, sessPool, pTbl, []table.Index{index}, []ingest.Engine{mockEngine}, srcChkPool, 3, reorgMeta)
opCtx, copCtx, mockBackendCtx, sessPool, pTbl, []table.Index{index}, []ingest.Engine{mockEngine}, srcChkPool, 3, reorgMeta)
sink := newTestSink[ddl.IndexWriteResult]()

operator.Compose[ddl.IndexRecordChunk](src, ingestOp)
Expand Down

0 comments on commit ad1f379

Please sign in to comment.