diff --git a/wayang-api/wayang-api-python/src/test/java/org/apache/wayang/api/python/PythonApiTests.java b/wayang-api/wayang-api-python/src/test/java/org/apache/wayang/api/python/PythonApiTests.java index 7f8397e7b..69beb53ad 100644 --- a/wayang-api/wayang-api-python/src/test/java/org/apache/wayang/api/python/PythonApiTests.java +++ b/wayang-api/wayang-api-python/src/test/java/org/apache/wayang/api/python/PythonApiTests.java @@ -31,19 +31,15 @@ class PythonApiTests { @Test void processCallerSocketTest() { try { - final Configuration configuration = new Configuration(); - final String path = Paths.get("python/worker.py").toString(); - - configuration.setProperty("wayang.api.python.worker", path); + final Configuration configuration = new Configuration(); + final PythonProcessCaller processCaller = new PythonProcessCaller(); - final PythonProcessCaller processCaller = new PythonProcessCaller(); + assertTrue(processCaller.getSocket().isConnected()); + assertTrue(processCaller.isReady()); - assertTrue(processCaller.getSocket().isConnected()); - assertTrue(processCaller.isReady()); - - processCaller.close(); + processCaller.close(); } catch (Exception e) { assumeTrue(false, "Skipping test due to setup error: " + e.getMessage()); } } -} +} \ No newline at end of file diff --git a/wayang-api/wayang-api-python/src/test/resources/wayang.properties b/wayang-api/wayang-api-python/src/test/resources/wayang.properties index 57fdf7303..4762cbd37 100644 --- a/wayang-api/wayang-api-python/src/test/resources/wayang.properties +++ b/wayang-api/wayang-api-python/src/test/resources/wayang.properties @@ -14,7 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # -wayang.api.python.worker = /var/www/html/python/src/pywy/execution/worker.py +wayang.api.python.worker = ../../python/src/pywy/execution/worker.py wayang.api.python.path = python3 wayang.api.python.env.path = /var/www/html/python/src