Skip to content

Commit 9ae0531

Browse files
author
tpfz
committed
fix lint
1 parent 7730f77 commit 9ae0531

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/modules/evaluation/domain/service/expt_result_impl_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4000,7 +4000,7 @@ func TestExptResultBuilder_buildTargetOutput(t *testing.T) {
40004000
assert.NotNil(t, trajectoryContent.Text)
40014001
// 验证内容已被剪裁(使用 generateJsonObjectPreview)
40024002
originalJSON := `{"id":"trace-1","root_step":{"step_id":"step-1","type":"tool_call","content":"very long content that should be trimmed"}}`
4003-
expectedPreview := utils.GenerateJsonObjectPreview([]byte(originalJSON))
4003+
expectedPreview := utils.GenerateJsonObjectPreview(originalJSON)
40044004
assert.Equal(t, expectedPreview, *trajectoryContent.Text, "trajectory should be trimmed using generateJsonObjectPreview")
40054005
// actual_output 字段应该保留
40064006
_, hasActualOutput := targetOutput.EvalTargetRecord.EvalTargetOutputData.OutputFields["actual_output"]

0 commit comments

Comments
 (0)