[Pkg-javascript-commits] [node-stream-http] 184/208: Disable broken timeout test

Bastien Roucariès rouca at moszumanska.debian.org
Sun Aug 13 13:39:43 UTC 2017


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

rouca pushed a commit to branch master
in repository node-stream-http.

commit 4cf6771177a482e8d1c0ef85106eb696fe58681d
Author: John Hiesey <john at hiesey.com>
Date:   Mon Apr 3 23:43:08 2017 -0700

    Disable broken timeout test
    
    timeout support is fairly broken; see #66
---
 test/browser/{timeout.js => timeout.js.disabled} | 25 ++++++++++++------------
 1 file changed, 13 insertions(+), 12 deletions(-)

diff --git a/test/browser/timeout.js b/test/browser/timeout.js.disabled
similarity index 55%
rename from test/browser/timeout.js
rename to test/browser/timeout.js.disabled
index 59c09b8..a49efdf 100644
--- a/test/browser/timeout.js
+++ b/test/browser/timeout.js.disabled
@@ -11,22 +11,23 @@ var browserName = browser.name
 var browserVersion = browser.major
 
 var skipTimeout = ((browserName === 'Opera' && browserVersion <= 12) ||
-    (browserName === 'Safari' && browserVersion <= 5))
+	(browserName === 'Safari' && browserVersion <= 5))
 
 
 test('emits timeout events', function (t) {
-    if (skipTimeout) {
-        return t.skip('Browser does not support setting timeouts')
-    }
+	if (skipTimeout) {
+		return t.skip('Browser does not support setting timeouts')
+	}
 
-    var req = http.request({
-        path: '/basic.txt',
-        timeout: 1
-    })
+	var req = http.request({
+		path: '/basic.txt',
+		timeout: 1
+	})
 
-    req.on('timeout', function () {
-        t.end() // the test will timeout if this does not happen
-    })
+	req.on('timeout', function () {
+		t.pass('timeout caught')
+		t.end() // the test will timeout if this does not happen
+	})
 
-    req.end()
+	req.end()
 })

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-stream-http.git



More information about the Pkg-javascript-commits mailing list