sharpened verdict in TestAbortingHeavyLoadQuery

This commit is contained in:
Axel Uhl
2024-08-29 14:32:54 +02:00
parent 4bb04ef8a0
commit 1e4c7794ac
@@ -170,7 +170,7 @@ public class TestAbortingHeavyLoadQuery {
}
// Checking state of unfinished instructions
for (StatefulProcessorInstruction<?> instruction : runningInstructions) {
assertTrue("computeResult() of a running unfinished instruction didn't finish", !instruction.computeResultWasCalled() || instruction.computeResultWasFinished());
assertTrue("computeResult() of a running unfinished instruction didn't finish", instruction.computeResultWasCalled() == instruction.computeResultWasFinished());
if (instruction instanceof StatefulBlockingInstruction) {
StatefulBlockingInstruction<?> blockingInstruction = (StatefulBlockingInstruction<?>) instruction;
assertTrue("computeResult() of a running heavy load instruction wasn't aborted", blockingInstruction.computeResultWasAborted());