mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 18:45:03 +08:00
[Java] Remove non-raylet code in Java. (#2828)
This commit is contained in:
@@ -25,7 +25,6 @@ public class PlasmaFreeTest {
|
||||
|
||||
@Test
|
||||
public void test() {
|
||||
Assume.assumeTrue(AbstractRayRuntime.getParams().use_raylet);
|
||||
RayObject<String> helloId = Ray.call(PlasmaFreeTest::hello);
|
||||
String helloString = helloId.get();
|
||||
Assert.assertEquals("hello", helloString);
|
||||
|
||||
@@ -49,7 +49,6 @@ public class ResourcesManagementTest {
|
||||
|
||||
@Test
|
||||
public void testMethods() {
|
||||
Assume.assumeTrue(AbstractRayRuntime.getParams().use_raylet);
|
||||
// This is a case that can satisfy required resources.
|
||||
RayObject<Integer> result1 = Ray.call(ResourcesManagementTest::echo1, 100);
|
||||
Assert.assertEquals(100, (int) result1.get());
|
||||
@@ -64,7 +63,6 @@ public class ResourcesManagementTest {
|
||||
|
||||
@Test
|
||||
public void testActors() {
|
||||
Assume.assumeTrue(AbstractRayRuntime.getParams().use_raylet);
|
||||
// This is a case that can satisfy required resources.
|
||||
RayActor<ResourcesManagementTest.Echo1> echo1 = Ray.createActor(Echo1::new);
|
||||
final RayObject<Integer> result1 = Ray.call(Echo1::echo, echo1, 100);
|
||||
|
||||
Reference in New Issue
Block a user