oleg-vlsk commented on code in PR #12087: URL: https://github.com/apache/ignite/pull/12087#discussion_r2153562861
########## modules/indexing/src/test/java/org/apache/ignite/internal/processors/query/LongRunningQueryTest.java: ########## @@ -643,7 +795,29 @@ private ListeningTestLogger testLog() { * @return Heavy queries tracker. */ private HeavyQueriesTracker heavyQueriesTracker() { - return ((IgniteH2Indexing)grid().context().query().getIndexing()).heavyQueriesTracker(); + return heavyQueriesTracker(0); + } + + /** */ + private HeavyQueriesTracker heavyQueriesTracker(int idx) { + return ((IgniteH2Indexing)grid(idx).context().query().getIndexing()).heavyQueriesTracker(); + } + + /** */ + private void checkQryInfoCount(int exp) { + int res = 0; + + for (int i = 0; i < gridCount(); i++) { + if (!heavyQueriesTracker(i).getQueries().isEmpty()) + res++; + } + + assertEquals(exp, res); + } + + /** */ + public int gridCount() { Review Comment: Done. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@ignite.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org