Complete source index reuse across extractors
This commit is contained in:
@@ -17,6 +17,8 @@ func TestExtractMapsExactlyOneSceneToTheChunk(t *testing.T) {
|
||||
Kind: dnd.SceneKindCombat, Title: " Fight at the Watchtower ", Summary: " Bandits attack the party. ",
|
||||
}}
|
||||
request := extractionRequest()
|
||||
index := source.NewDocumentIndex(request.Source)
|
||||
request.SourceIndex = &index
|
||||
result, err := runExtraction(newExtractor(t, client), context.Background(), request)
|
||||
if err != nil {
|
||||
t.Fatalf("Extract() error = %v, want nil", err)
|
||||
|
||||
Reference in New Issue
Block a user