mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 21:46:57 +08:00
Fix the issue when passing multiple options in one string (#5241)
* Fix * Fix linting * Fix linting * Address * Fix test
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user