Created
November 30, 2011 09:58
-
-
Save slaskis/1408546 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
diff --git a/test/connector/agent-test.js b/test/connector/agent-test.js | |
index 809b121..2bcfd6d 100644 | |
--- a/test/connector/agent-test.js | |
+++ b/test/connector/agent-test.js | |
@@ -183,7 +183,7 @@ function shouldHaveOptions(setOptions) { | |
tests['should have host option'] = function(connector) { | |
var host = options.host || options.url && urlData.hostname || defaultOptions.host; | |
assert.strictEqual(connector.host, host); | |
- if (!options.agent) assert.strictEqual(connector.agent.host, host); | |
+ if (!options.agent) assert.strictEqual(connector.host, host); | |
} | |
break; | |
@@ -192,7 +192,7 @@ function shouldHaveOptions(setOptions) { | |
var port = options.port || options.url && parseInt(urlData.port); | |
if (!port) port = options.secure ? 443 : 80; | |
assert.strictEqual(connector.port, port); | |
- if (!options.agent) assert.strictEqual(connector.agent.port, port); | |
+ if (!options.agent) assert.strictEqual(connector.port, port); | |
} | |
break; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment