Repository: incubator-usergrid
Updated Branches:
  refs/heads/r3b-core-tests [created] ca697d9a8


Fixed NotSubPropertyIT


Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/ca697d9a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/ca697d9a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/ca697d9a

Branch: refs/heads/r3b-core-tests
Commit: ca697d9a8d3305b25395dae0f97fc3d64c0aa44c
Parents: ae1267a
Author: ryan bridges <ry...@apache.org>
Authored: Fri Apr 24 11:18:44 2015 -0400
Committer: ryan bridges <ry...@apache.org>
Committed: Fri Apr 24 11:18:44 2015 -0400

----------------------------------------------------------------------
 .../apache/usergrid/persistence/query/NotSubPropertyIT.java    | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/ca697d9a/stack/core/src/test/java/org/apache/usergrid/persistence/query/NotSubPropertyIT.java
----------------------------------------------------------------------
diff --git 
a/stack/core/src/test/java/org/apache/usergrid/persistence/query/NotSubPropertyIT.java
 
b/stack/core/src/test/java/org/apache/usergrid/persistence/query/NotSubPropertyIT.java
index 11e0f09..bbb0733 100644
--- 
a/stack/core/src/test/java/org/apache/usergrid/persistence/query/NotSubPropertyIT.java
+++ 
b/stack/core/src/test/java/org/apache/usergrid/persistence/query/NotSubPropertyIT.java
@@ -46,7 +46,7 @@ public class NotSubPropertyIT {
 
     private static final Logger LOG = LoggerFactory.getLogger( 
IntersectionUnionPagingIT.class );
 
-    private static final String notQuery = "select * where NOT 
subArray.usageType = 'true1'";
+    private static final String notQuery = "select * where NOT 
subArray.usageType = 'true' order by created asc";
 
     private static final int PAGE_SIZE = 300;
 
@@ -113,7 +113,7 @@ public class NotSubPropertyIT {
                 Map<String, Object> subFields = new HashMap<String, Object>();
                 subFields.put( "startDate", 10000 );
                 subFields.put( "endDate", 20000 );
-                subFields.put( "usageType", usageType + j );
+                subFields.put( "usageType", usageType );
 
                 subArray.add( subFields );
             }
@@ -132,6 +132,8 @@ public class NotSubPropertyIT {
 
         LOG.info( "Writes took {} ms", stop - start );
 
+        app.refreshIndex();
+
         return expected;
     }
 

Reply via email to