usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sfeld...@apache.org
Subject git commit: update limit
Date Thu, 21 Aug 2014 14:26:16 GMT
Repository: incubator-usergrid
Updated Branches:
  refs/heads/two-dot-o-push-notifications 1e7a1aeea -> ddc219c63


update limit


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

Branch: refs/heads/two-dot-o-push-notifications
Commit: ddc219c63b1e984f6d5638cdbb0c5a22affba8bc
Parents: 1e7a1ae
Author: Shawn Feldman <sfeldman@apache.org>
Authored: Thu Aug 21 08:26:01 2014 -0600
Committer: Shawn Feldman <sfeldman@apache.org>
Committed: Thu Aug 21 08:26:01 2014 -0600

----------------------------------------------------------------------
 .../services/notifications/apns/NotificationsServiceIT.java      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/ddc219c6/stack/services/src/test/java/org/apache/usergrid/services/notifications/apns/NotificationsServiceIT.java
----------------------------------------------------------------------
diff --git a/stack/services/src/test/java/org/apache/usergrid/services/notifications/apns/NotificationsServiceIT.java
b/stack/services/src/test/java/org/apache/usergrid/services/notifications/apns/NotificationsServiceIT.java
index 0f89b21..ed15eeb 100644
--- a/stack/services/src/test/java/org/apache/usergrid/services/notifications/apns/NotificationsServiceIT.java
+++ b/stack/services/src/test/java/org/apache/usergrid/services/notifications/apns/NotificationsServiceIT.java
@@ -344,7 +344,7 @@ public class NotificationsServiceIT extends AbstractServiceNotificationIT
{
         payloads.clear();
         StringBuilder sb = new StringBuilder();
         sb.append("{\"x\":\"");
-        while (sb.length() < 255) {
+        while (sb.length() < 2047) {
             sb.append("x");
         }
         sb.append("\"}");
@@ -358,7 +358,7 @@ public class NotificationsServiceIT extends AbstractServiceNotificationIT
{
             fail("invalid payload should have been rejected");
         } catch (Exception ex) {
             assertEquals(ex.getMessage(),
-                    "java.lang.IllegalArgumentException: Apple APNs payloads must be 256
characters or less");
+                    "java.lang.IllegalArgumentException: Apple APNs payloads must be 2048
characters or less");
             // ok
         }
     }


Mime
View raw message