Fix the issue when passing multiple options in one string (#5241)

* Fix

* Fix linting

* Fix linting

* Address

* Fix test
This commit is contained in:
Qing Wang
2019-07-23 12:28:54 +08:00
committed by GitHub
parent fc589050c9
commit a3d4f9f16d
6 changed files with 45 additions and 28 deletions
@@ -22,7 +22,9 @@ public class WorkerJvmOptionsTest extends BaseTest {
public void testJvmOptions() {
TestUtils.skipTestUnderSingleProcess();
ActorCreationOptions options = new ActorCreationOptions.Builder()
.setJvmOptions("-Dtest.suffix=suffix")
// The whitespaces in following argument are intentionally added to test
// that raylet can correctly handle dynamic options with whitespaces.
.setJvmOptions(" -Dtest.suffix=suffix -Dtest.suffix1=suffix1 ")
.createActorCreationOptions();
RayActor<Echo> actor = Ray.createActor(Echo::new, options);
RayObject<String> obj = Ray.call(Echo::getOptions, actor);