File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed
test/src/main/java/org/ray/api/test Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 141141 <encoding >UTF-8</encoding >
142142 <consoleOutput >true</consoleOutput >
143143 <failsOnError >false</failsOnError >
144- <failOnViolation >false </failOnViolation >
144+ <failOnViolation >true </failOnViolation >
145145 <violationSeverity >warning</violationSeverity >
146146 <format >xml</format >
147147 <format >html</format >
Original file line number Diff line number Diff line change @@ -7,5 +7,10 @@ mvn clean install -pl plasma -am -Dmaven.test.skip
77popd
88pushd $ROOT_DIR /../java
99mvn clean install -Dmaven.test.skip
10- mvn test
10+ check_style=$( mvn checkstyle:check)
11+ echo " ${check_style} "
12+ [[ ${check_style} =~ " BUILD FAILURE" ]] && exit 1
13+ mvn_test=$( mvn test)
14+ echo " ${mvn_test} "
15+ [[ ${mvn_test} =~ " BUILD SUCCESS" ]] || exit 1
1116popd
Original file line number Diff line number Diff line change 1111import org .ray .core .UniqueIdHelper ;
1212
1313@ RunWith (MyRunner .class )
14- public class UniqueIdTest {
14+ public class UIdTest {
15+
1516
1617 @ RayRemote
1718 public static String hi (Integer i ) {
@@ -23,7 +24,7 @@ public void test() {
2324 UniqueID tid = UniqueIdHelper .nextTaskId (0xdeadbeefL );
2425 UniqueIdHelper .setTest (tid , true );
2526 System .out .println ("Tested task id = " + tid );
26- RayFunc_1_1 <Integer , String > f = UniqueIdTest ::hi ;
27+ RayFunc_1_1 <Integer , String > f = UIdTest ::hi ;
2728 RayObject <String > result = new RayObject <>(
2829 RayRuntime .getInstance ().call (
2930 tid ,
You can’t perform that action at this time.
0 commit comments