logging SmartFutureCache result if unexpectedly no exception was thrown

This commit is contained in:
Axel Uhl
2026-04-20 17:36:19 +02:00
parent 01637f89c6
commit d03014da14
@@ -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());
}