You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by pa...@apache.org on 2021/10/28 15:59:41 UTC

[beam] branch master updated: fix executor tests

This is an automated email from the ASF dual-hosted git repository.

pabloem pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/master by this push:
     new ed8bba5  fix executor tests
     new d9d6131  Merge pull request #15822 from [BEAM-13126][Playground][Bugfix] Fix executor builder tests
ed8bba5 is described below

commit ed8bba563992b1e02a5e10279627a211200e0f6e
Author: daria-malkova <da...@akvelon.com>
AuthorDate: Thu Oct 28 12:44:18 2021 +0300

    fix executor tests
---
 playground/backend/internal/executors/executor_test.go | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/playground/backend/internal/executors/executor_test.go b/playground/backend/internal/executors/executor_test.go
index 5614334..226bb8c 100644
--- a/playground/backend/internal/executors/executor_test.go
+++ b/playground/backend/internal/executors/executor_test.go
@@ -69,12 +69,12 @@ func TestExecutor_Compile(t *testing.T) {
 				compileArgs: CmdConfiguration{
 					fileName:    "filePath",
 					workingDir:  "./",
-					commandName: "javac",
+					commandName: "testCommand",
 					commandArgs: []string{"-d", "bin", "-classpath", "/opt/apache/beam/jars/beam-sdks-java-harness.jar"},
 				},
 			},
 			want: &exec.Cmd{
-				Path:         "/usr/bin/javac",
+				Path:         "testCommand",
 				Args:         []string{"javac", "-d", "bin", "-classpath", "/opt/apache/beam/jars/beam-sdks-java-harness.jar", "filePath"},
 				Env:          nil,
 				Dir:          "",
@@ -119,13 +119,13 @@ func TestExecutor_Run(t *testing.T) {
 				runArgs: CmdConfiguration{
 					fileName:    "HelloWorld",
 					workingDir:  "./",
-					commandName: "java",
+					commandName: "testCommand",
 					commandArgs: []string{"-cp", "bin:/opt/apache/beam/jars/beam-sdks-java-harness.jar:" +
 						"/opt/apache/beam/jars/beam-runners-direct.jar:/opt/apache/beam/jars/slf4j-jdk14.jar"},
 				},
 			},
 			want: &exec.Cmd{
-				Path: "/usr/bin/java",
+				Path: "testCommand",
 				Args: []string{"java", "-cp", "bin:/opt/apache/beam/jars/beam-sdks-java-harness.jar:" +
 					"/opt/apache/beam/jars/beam-runners-direct.jar:/opt/apache/beam/jars/slf4j-jdk14.jar", "HelloWorld"},
 				Env:          nil,