Skip to content

Commit a315756

Browse files
committed
Fix sql tests
1 parent adb8388 commit a315756

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

modules/sql-engine/src/integrationTest/java/org/apache/ignite/internal/sql/engine/systemviews/ItComputeSystemViewTest.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
import java.util.List;
4242
import java.util.Map;
4343
import java.util.UUID;
44+
import java.util.concurrent.CancellationException;
4445
import java.util.concurrent.CompletableFuture;
4546
import org.apache.ignite.Ignite;
4647
import org.apache.ignite.client.IgniteClient;
@@ -277,12 +278,9 @@ public static class InfiniteJob implements ComputeJob<Void, Void> {
277278
try {
278279
Thread.sleep(500);
279280
} catch (InterruptedException e) {
280-
// No op, just return from loop
281-
break;
281+
throw new CancellationException();
282282
}
283283
}
284-
285-
return null;
286284
}
287285
}
288286

0 commit comments

Comments
 (0)