|
|
@@ -124,14 +124,63 @@ Content-Type: text/plain; charset="UTF-8"
|
|
|
you know this is a string.
|
|
|
it's a long string.
|
|
|
it's supposed to be longer than the max message length
|
|
|
-which is 512 bytes,
|
|
|
-which some people say is too short
|
|
|
+which is 4096 bytes,
|
|
|
+it used to be 512 bytes, but I increased that for the UnifiedPush support
|
|
|
+the 512 bytes was a little short, some people said
|
|
|
but it kinda makes sense when you look at what it looks like one a phone
|
|
|
heck this wasn't even half of it so far.
|
|
|
so i'm gonna fill the rest of this with AAAAAAAAAAAAAAAAAAAAAAAAAAA
|
|
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
|
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAa
|
|
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
and with BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
|
|
|
BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
|
|
|
BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
|
|
|
@@ -141,15 +190,66 @@ that should do it
|
|
|
expected := `you know this is a string.
|
|
|
it's a long string.
|
|
|
it's supposed to be longer than the max message length
|
|
|
-which is 512 bytes,
|
|
|
-which some people say is too short
|
|
|
+which is 4096 bytes,
|
|
|
+it used to be 512 bytes, but I increased that for the UnifiedPush support
|
|
|
+the 512 bytes was a little short, some people said
|
|
|
but it kinda makes sense when you look at what it looks like one a phone
|
|
|
heck this wasn't even half of it so far.
|
|
|
so i'm gonna fill the rest of this with AAAAAAAAAAAAAAAAAAAAAAAAAAA
|
|
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
|
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAa
|
|
|
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
|
|
|
-and with `
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+......................................................................
|
|
|
+and with BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
|
|
|
+BBBBBBBBBBBBBBBBBBBBBBBB`
|
|
|
+ require.Equal(t, 4096, len(expected)) // Sanity check
|
|
|
require.Equal(t, expected, m.Message)
|
|
|
return nil
|
|
|
})
|