File tree Expand file tree Collapse file tree
wayang-api/wayang-api-python/src/test
java/org/apache/wayang/api/python Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,19 +31,15 @@ class PythonApiTests {
3131 @ Test
3232 void processCallerSocketTest () {
3333 try {
34- final Configuration configuration = new Configuration ();
35- final String path = Paths .get ("python/worker.py" ).toString ();
36-
37- configuration .setProperty ("wayang.api.python.worker" , path );
34+ final Configuration configuration = new Configuration ();
35+ final PythonProcessCaller processCaller = new PythonProcessCaller ();
3836
39- final PythonProcessCaller processCaller = new PythonProcessCaller ();
37+ assertTrue (processCaller .getSocket ().isConnected ());
38+ assertTrue (processCaller .isReady ());
4039
41- assertTrue (processCaller .getSocket ().isConnected ());
42- assertTrue (processCaller .isReady ());
43-
44- processCaller .close ();
40+ processCaller .close ();
4541 } catch (Exception e ) {
4642 assumeTrue (false , "Skipping test due to setup error: " + e .getMessage ());
4743 }
4844 }
49- }
45+ }
Original file line number Diff line number Diff line change 1414# See the License for the specific language governing permissions and
1515# limitations under the License.
1616#
17- wayang.api.python.worker = /var/www/html /python/src/pywy/execution/worker.py
17+ wayang.api.python.worker = ../.. /python/src/pywy/execution/worker.py
1818wayang.api.python.path = python3
1919wayang.api.python.env.path = /var/www/html/python/src
2020
You can’t perform that action at this time.
0 commit comments