Retain only reportable operation details
This commit is contained in:
@@ -222,7 +222,7 @@ func TestRunnerRetainsLaterProposalEvidenceWhenEarlierSectionFails(t *testing.T)
|
||||
candidate := out.Candidates[0]
|
||||
later := out.WorkUnits[1]
|
||||
if candidate.ProposalIndex != 0 || candidate.TargetSegmentID != 93 || later.State != outcomes.WorkInterrupted || later.Failure == nil || !errors.Is(later.Failure, context.Canceled) ||
|
||||
len(later.Operations) != 1 || len(later.Operations[0].ProposalIndices) != 1 || later.Operations[0].ProposalIndices[0] != candidate.ProposalIndex ||
|
||||
candidate.SectionIndex == nil || *candidate.SectionIndex != later.Section.Index ||
|
||||
out.FinalTranscript.Segments[1].Text != "other text" {
|
||||
t.Fatalf("later candidate or association lost: candidate=%+v work=%+v", candidate, later)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user