mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-17 11:19:15 +00:00
logging SmartFutureCache result if unexpectedly no exception was thrown
This commit is contained in:
+2
-2
@@ -72,8 +72,8 @@ public class SmartFutureCacheTest {
|
||||
sfc.triggerUpdate("humba", /* update interval */ null);
|
||||
try {
|
||||
// during the first call, expecting exception
|
||||
sfc.get("humba", /* waitForLatest */ true);
|
||||
fail("Expected RuntimeException because computeCacheUpdate threw one");
|
||||
final String result = sfc.get("humba", /* waitForLatest */ true);
|
||||
fail("Expected RuntimeException because computeCacheUpdate threw one; instead, it returned "+result);
|
||||
} catch (RuntimeException expected) {
|
||||
assertSame(ExecutionException.class, expected.getCause().getClass());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user