usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject [09/50] [abbrv] incubator-usergrid git commit: Fixes tests by invalidating version cache after hard resetting
Date Wed, 03 Dec 2014 19:59:19 GMT
Fixes tests by invalidating version cache after hard resetting


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

Branch: refs/heads/two-dot-o-events
Commit: 3e2101165a81084abcb925910a52662cbc5c0d05
Parents: 0a92bee
Author: Todd Nine <tnine@apigee.com>
Authored: Fri Nov 21 14:37:14 2014 -0700
Committer: Todd Nine <tnine@apigee.com>
Committed: Fri Nov 21 14:37:14 2014 -0700

----------------------------------------------------------------------
 .../usergrid/corepersistence/migration/EntityDataMigrationIT.java  | 1 +
 .../corepersistence/migration/GraphShardVersionMigrationIT.java    | 2 ++
 2 files changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/3e210116/stack/core/src/test/java/org/apache/usergrid/corepersistence/migration/EntityDataMigrationIT.java
----------------------------------------------------------------------
diff --git a/stack/core/src/test/java/org/apache/usergrid/corepersistence/migration/EntityDataMigrationIT.java
b/stack/core/src/test/java/org/apache/usergrid/corepersistence/migration/EntityDataMigrationIT.java
index 5c9e14c..b8c0093 100644
--- a/stack/core/src/test/java/org/apache/usergrid/corepersistence/migration/EntityDataMigrationIT.java
+++ b/stack/core/src/test/java/org/apache/usergrid/corepersistence/migration/EntityDataMigrationIT.java
@@ -96,6 +96,7 @@ public class EntityDataMigrationIT extends AbstractCoreIT {
          * Reset to our version -1 and start the migration
          */
         dataMigrationManager.resetToVersion( entityDataMigration.getVersion() - 1 );
+        dataMigrationManager.invalidate();
 
 
         final EntityManager newAppEm = app.getEntityManager();

http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/3e210116/stack/core/src/test/java/org/apache/usergrid/corepersistence/migration/GraphShardVersionMigrationIT.java
----------------------------------------------------------------------
diff --git a/stack/core/src/test/java/org/apache/usergrid/corepersistence/migration/GraphShardVersionMigrationIT.java
b/stack/core/src/test/java/org/apache/usergrid/corepersistence/migration/GraphShardVersionMigrationIT.java
index 51ea052..e119788 100644
--- a/stack/core/src/test/java/org/apache/usergrid/corepersistence/migration/GraphShardVersionMigrationIT.java
+++ b/stack/core/src/test/java/org/apache/usergrid/corepersistence/migration/GraphShardVersionMigrationIT.java
@@ -78,6 +78,8 @@ public class GraphShardVersionMigrationIT extends AbstractCoreIT {
          * Reset to our version -1 and start the migration
          */
         dataMigrationManager.resetToVersion( graphShardVersionMigration.getVersion() - 1
);
+        dataMigrationManager.invalidate();
+
 
 
         final EntityManager newAppEm = app.getEntityManager();


Mime
View raw message