Created
November 4, 2010 05:33
-
-
Save esigler/662163 to your computer and use it in GitHub Desktop.
This should prevent the test from failing on FreeBSD (tested with node latest & FreeBSD 8.1-RELEASE)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 29b1ba44c6909d666676bc69837a037ef709d153 Mon Sep 17 00:00:00 2001 | |
From: Eric Sigler <me@esigler.com> | |
Date: Thu, 4 Nov 2010 00:30:17 +0000 | |
Subject: [PATCH] Altering test to destroy() connection instead of end(), to avoid testing invalid data | |
--- | |
test/simple/test-http-upgrade-server.js | 2 +- | |
1 files changed, 1 insertions(+), 1 deletions(-) | |
diff --git a/test/simple/test-http-upgrade-server.js b/test/simple/test-http-upgrade-server.js | |
index 9d2f075..12823e8 100644 | |
--- a/test/simple/test-http-upgrade-server.js | |
+++ b/test/simple/test-http-upgrade-server.js | |
@@ -135,7 +135,7 @@ function test_standard_http(){ | |
conn.addListener("data", function(data){ | |
assert.equal("string", typeof data); | |
assert.equal("HTTP/1.1 200", data.substr(0, 12)); | |
- conn.end(); | |
+ conn.destroy(); | |
}); | |
conn.addListener("close", function(){ | |
-- | |
1.7.1.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment