[Pkg-javascript-commits] [sockjs-client] 396/434: #58 - Opening an ajax to a wrong dns results in a very long wait

Tonnerre Lombard tonnerre-guest at moszumanska.debian.org
Wed Jan 8 00:47:28 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 76ce309e31ff3cb32edc1e0e57f5d10902a86aea
Author: Marek Majkowski <majek04 at gmail.com>
Date:   Mon Apr 23 11:51:08 2012 +0100

    #58 - Opening an ajax to a wrong dns results in a very long wait
    
    That blocks further tests - including the onunload one, for some reason. Let's use an ip instead.
---
 tests/html/src/unittests.coffee | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/html/src/unittests.coffee b/tests/html/src/unittests.coffee
index 0cd52e5..b6487d1 100644
--- a/tests/html/src/unittests.coffee
+++ b/tests/html/src/unittests.coffee
@@ -216,7 +216,7 @@ test 'detectProtocols', ->
 
 test "EventEmitter", ->
     expect(4)
-    r = new SockJS('//wrongdomainthatdoesntresolveatall/abc', null,
+    r = new SockJS('//1.2.3.4/wrongurl', null,
                    {protocols_whitelist: []})
     r.addEventListener 'message', -> ok(true)
     r.onmessage = -> ok(false)
@@ -236,3 +236,4 @@ test "EventEmitter", ->
     r.dispatchEvent({type:'close'}) # 1 callback run
     r.removeEventListener 'close', single
     r.dispatchEvent({type:'close'}) # 0 runs
+    r.close()

-- 
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