Skip to content

Commit

Permalink
#IGNITE-SQL Fixed IgniteCacheSqlQueryMultiThreadedSelfTest.testQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
niktikhonov committed Feb 13, 2015
1 parent d9a3b3b commit 602eef7
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -94,12 +94,12 @@ public void testQuery() throws Exception {
GridTestUtils.runMultiThreaded(new Callable<Void>() { GridTestUtils.runMultiThreaded(new Callable<Void>() {
@Override public Void call() throws Exception { @Override public Void call() throws Exception {
for (int i = 0; i < 100; i++) { for (int i = 0; i < 100; i++) {
Iterator<Cache.Entry<Integer, Person>> iter = QueryCursor<Cache.Entry<Integer, Person>> qry =
cache.query(new SqlQuery("age >= 0").setType("Person")).iterator(); cache.query(new SqlQuery("age >= 0").setType("Person"));


int cnt = 0; int cnt = 0;


while (iter.next() != null) for (Cache.Entry<Integer, Person> e : qry)
cnt++; cnt++;


assertEquals(2000, cnt); assertEquals(2000, cnt);
Expand Down

0 comments on commit 602eef7

Please sign in to comment.