From 44b11d529b3d36346bc4aa542913e8b0a83c962c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cv=5Fkkhuang=E2=80=9D?= <“420895376@qq.com”> Date: Wed, 25 Sep 2024 14:13:24 +0800 Subject: [PATCH] fix unit testing errors --- .../python/executor/TestPythonEngineConnExecutor.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/linkis-engineconn-plugins/python/src/test/scala/org/apache/linkis/manager/engineplugin/python/executor/TestPythonEngineConnExecutor.scala b/linkis-engineconn-plugins/python/src/test/scala/org/apache/linkis/manager/engineplugin/python/executor/TestPythonEngineConnExecutor.scala index 0f64bb8053..c53c40dd8d 100644 --- a/linkis-engineconn-plugins/python/src/test/scala/org/apache/linkis/manager/engineplugin/python/executor/TestPythonEngineConnExecutor.scala +++ b/linkis-engineconn-plugins/python/src/test/scala/org/apache/linkis/manager/engineplugin/python/executor/TestPythonEngineConnExecutor.scala @@ -69,14 +69,14 @@ class TestPythonEngineConnExecutor { // executor.init() // Assertions.assertTrue(executor.isEngineInitialized) // if (!System.getProperty("os.name").startsWith("Windows")) { -//// engineConn.getEngineConnSession.asInstanceOf[PythonSession].onPythonScriptInitialized(1) -//// hookPre.beforeExecutionExecute(engineCreationContext, engineConn) +// engineConn.getEngineConnSession.asInstanceOf[PythonSession].onPythonScriptInitialized(1) +// hookPre.beforeExecutionExecute(engineCreationContext, engineConn) // val engineExecutionContext = new EngineExecutionContext(executor, Utils.getJvmUser) // val code = "for i in range(10):\n print(i)" // val response = executor.executeLine(engineExecutionContext, code) // Assertions.assertNotNull(response) // executor.close() - } +// } } }