usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject [3/4] git commit: Do not need write delay in tests any more.
Date Tue, 22 Jul 2014 17:10:14 GMT
Do not need write delay in tests any more.


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

Branch: refs/heads/two-dot-o
Commit: 173ebc86879f4498e47a6ab785e659b76fa1cdb3
Parents: 2546eea
Author: Dave Johnson <dmjohnson@apigee.com>
Authored: Fri Jul 18 16:12:58 2014 -0400
Committer: Dave Johnson <dmjohnson@apigee.com>
Committed: Fri Jul 18 16:12:58 2014 -0400

----------------------------------------------------------------------
 .../persistence/query/AbstractIteratingQueryIT.java       | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/173ebc86/stack/core/src/test/java/org/apache/usergrid/persistence/query/AbstractIteratingQueryIT.java
----------------------------------------------------------------------
diff --git a/stack/core/src/test/java/org/apache/usergrid/persistence/query/AbstractIteratingQueryIT.java
b/stack/core/src/test/java/org/apache/usergrid/persistence/query/AbstractIteratingQueryIT.java
index 874399f..ec96711 100644
--- a/stack/core/src/test/java/org/apache/usergrid/persistence/query/AbstractIteratingQueryIT.java
+++ b/stack/core/src/test/java/org/apache/usergrid/persistence/query/AbstractIteratingQueryIT.java
@@ -46,7 +46,7 @@ import static org.junit.Assert.assertTrue;
 public abstract class AbstractIteratingQueryIT {
     private static final Logger LOG = LoggerFactory.getLogger( AbstractIteratingQueryIT.class
);
 
-    public static final long WRITE_DELAY = 200; // milliseconds to delay between writes in
loop
+    public static final long WRITE_DELAY = 0; // milliseconds to delay between writes in
loop
 
     @ClassRule
     public static CoreITSetup setup = new CoreITSetupImpl( 
@@ -1252,7 +1252,9 @@ public abstract class AbstractIteratingQueryIT {
 
             Entity e = app.getEm().create( "test", entity );
 
-            Thread.sleep( WRITE_DELAY );
+            if ( WRITE_DELAY > 0 ) {
+                Thread.sleep( WRITE_DELAY );
+            }
 
             return e;
         }
@@ -1295,7 +1297,9 @@ public abstract class AbstractIteratingQueryIT {
             Entity created = super.writeEntity( entity );
             app.getEm().createConnection( rootEntity, CONNECTION, created );
 
-            Thread.sleep( WRITE_DELAY );
+            if ( WRITE_DELAY > 0 ) {
+                Thread.sleep( WRITE_DELAY );
+            }
 
             return created;
         }


Mime
View raw message