usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject [22/33] git commit: Removed the pool from the test adapter as it was timing out and causing errors.
Date Fri, 05 Sep 2014 21:11:25 GMT
Removed the pool from the test adapter as it was timing out and causing errors.


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

Branch: refs/heads/two-dot-o
Commit: 10c8d280049b2c8deef683ad33e4113efcb37452
Parents: ddc219c
Author: grey <greyes@apigee.com>
Authored: Fri Aug 22 07:52:18 2014 -0700
Committer: grey <greyes@apigee.com>
Committed: Fri Aug 22 07:52:18 2014 -0700

----------------------------------------------------------------------
 .../services/notifications/TestAdapter.java     | 30 ++++++++++----------
 1 file changed, 15 insertions(+), 15 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/10c8d280/stack/services/src/main/java/org/apache/usergrid/services/notifications/TestAdapter.java
----------------------------------------------------------------------
diff --git a/stack/services/src/main/java/org/apache/usergrid/services/notifications/TestAdapter.java
b/stack/services/src/main/java/org/apache/usergrid/services/notifications/TestAdapter.java
index 1f996a9..2f28364 100644
--- a/stack/services/src/main/java/org/apache/usergrid/services/notifications/TestAdapter.java
+++ b/stack/services/src/main/java/org/apache/usergrid/services/notifications/TestAdapter.java
@@ -64,23 +64,23 @@ public class TestAdapter implements ProviderAdapter {
         final APNsNotification apnsNotification = APNsNotification.create(
                 "", payload.toString(), notification, tracker);
 
-        if (pool == null) {
+       // if (pool == null) {
             apnsNotification.messageSent();
 
-        } else {
-            pool.submit(new Runnable() {
-                @Override
-                public void run() {
-                    try {
-                        Thread.sleep(DELAY);
-                        apnsNotification.messageSent();
-                        log.debug("messageSent() - " + payload.toString());
-                    } catch (Exception e) {
-                        log.error("messageSent() returned error", e);
-                    }
-                }
-            });
-        }
+//        } else {
+//            pool.submit(new Runnable() {
+//                @Override
+//                public void run() {
+//                    try {
+//                        Thread.sleep(DELAY);
+//                        apnsNotification.messageSent();
+//                        log.debug("messageSent() - " + payload.toString());
+//                    } catch (Exception e) {
+//                        log.error("messageSent() returned error", e);
+//                    }
+//                }
+//            });
+//        }
     }
 
     @Override


Mime
View raw message