Complete source index reuse across extractors
This commit is contained in:
@@ -33,7 +33,10 @@ func TestExtractMapsAndOrdersCombatTurnsBySourcePosition(t *testing.T) {
|
||||
},
|
||||
}}}
|
||||
|
||||
result, err := runExtraction(context.Background(), newExtractor(t, client), extractionRequest(t))
|
||||
req := extractionRequest(t)
|
||||
index := source.NewDocumentIndex(req.Source)
|
||||
req.SourceIndex = &index
|
||||
result, err := runExtraction(context.Background(), newExtractor(t, client), req)
|
||||
if err != nil {
|
||||
t.Fatalf("Extract() error = %v, want nil", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user