test(task): expect 1 chunk after #17739 global merge (#17841)

This commit is contained in:
Jack
2026-08-05 19:08:52 +08:00
committed by GitHub
parent 2fcc34904b
commit da5215cb1f

View File

@@ -123,8 +123,8 @@ func TestPipelineExecutor_Run_RealCanvasDSL_UsesGeneralPipeline(t *testing.T) {
if len(inserted) != 1 {
t.Fatalf("insert calls = %d, want 1", len(inserted))
}
if len(inserted[0]) != 2 {
t.Fatalf("inserted chunk count = %d, want 2", len(inserted[0]))
if len(inserted[0]) != 1 {
t.Fatalf("inserted chunk count = %d, want 1", len(inserted[0]))
}
for i, ck := range inserted[0] {
if got := ck["doc_id"]; got != docID {
@@ -354,8 +354,8 @@ func TestRunPipeline_RealPipelineOutput_ProducesIndexFields(t *testing.T) {
t.Fatalf("insert calls = %d, want 1", len(inserted))
}
chunks := inserted[0]
if len(chunks) != 2 {
t.Fatalf("inserted chunk count = %d, want 2", len(chunks))
if len(chunks) != 1 {
t.Fatalf("inserted chunk count = %d, want 1", len(chunks))
}
for i, ck := range chunks {
if got := ck["doc_id"]; got != docID {