[Pkg-javascript-commits] [sockjs-client] 101/434: In order to check if polling transport properly restarts connections, we need to send more data in tests (>128K).

Tonnerre Lombard tonnerre-guest at moszumanska.debian.org
Wed Jan 8 00:47:06 UTC 2014


This is an automated email from the git hooks/post-receive script.

tonnerre-guest pushed a commit to branch master
in repository sockjs-client.

commit cb5d98394d9a4ab3e6c2d98596169a61434d2ce4
Author: Marek Majkowski <majek04 at gmail.com>
Date:   Thu Aug 25 14:58:22 2011 +0100

    In order to check if polling transport properly restarts connections, we need to send more data in tests (>128K).
---
 tests/html/src/tests.coffee | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/html/src/tests.coffee b/tests/html/src/tests.coffee
index 3970cb8..9ceaa21 100644
--- a/tests/html/src/tests.coffee
+++ b/tests/html/src/tests.coffee
@@ -86,11 +86,15 @@ factor_echo_special_chars = (protocol) ->
 
 
 factor_echo_large_message = (protocol) ->
+    # Should be larger than 128k - the limit for a single request in
+    # some streaming transports.
     messages = [
         Array(4096).join('x'),
         Array(4096*2).join('x'),
         Array(4096*4).join('x'),
         Array(4096*8).join('x'),
+        Array(Math.pow(2,18)).join('x'),
+        Array(Math.pow(2,18)).join('x'),
     ]
     return echo_factory_factory(protocol, messages)
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/sockjs-client.git



More information about the Pkg-javascript-commits mailing list