From 76368402f65119910e61de936299298aab7a305a Mon Sep 17 00:00:00 2001 From: elaineshijie Date: Thu, 14 Nov 2024 02:11:06 +0800 Subject: [PATCH] fix: incorrect input --- run-service/controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run-service/controller.js b/run-service/controller.js index 22d98b2931..d246328458 100644 --- a/run-service/controller.js +++ b/run-service/controller.js @@ -273,7 +273,7 @@ async function runTestcase(testcase, code) { let outputFinal = responseData.stdout ? responseData.stdout : ""; let testCaseDetailsFinal = { - input: responseData.input || "No input description", + input: testcase.input || "No input description", expectedOutput: testcase.expectedOutput || "No expected output", testCaseId: testcase._id, };