Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Java] Make Java test more stable (ray-project#26282)
If compile Ray in debug mode, * run `MetricsTest:: testAddHistogram` will crash with below error message: ``` BucketBoundaries::Explicit called with non-monotonic boundary list. java: external/io_opencensus_cpp/opencensus/stats/internal/bucket_boundaries.cc:64: opencensus::stats::BucketBoundaries::Explicit(std::__debug::vector<double>)::<lambda()>: Assertion `false && "0"' failed. ``` * run `NamespaceTest::testIsolationInTheSameNamespaces` can fail with great possibility with below error message: ``` java.util.NoSuchElementException: No value present at java.util.Optional.get(Optional.java:135) at io.ray.test.NamespaceTest.lambda$testIsolationInTheSameNamespaces$2(NamespaceTest.java:39) at io.ray.test.NamespaceTest.testIsolation(NamespaceTest.java:116) at io.ray.test.NamespaceTest.testIsolationInTheSameNamespaces(NamespaceTest.java:36) ```
- Loading branch information