From ddd3efb763f5825606575fe5bcf2c1fa84e29366 Mon Sep 17 00:00:00 2001 From: Aaron Miller Date: Wed, 11 Mar 2015 16:50:28 -0400 Subject: [PATCH] update per review feedback --- request.js | 4 +--- tests/test-timing.js | 4 ---- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/request.js b/request.js index 7ac68791e..2ef3211e1 100644 --- a/request.js +++ b/request.js @@ -874,7 +874,6 @@ Request.prototype.start = function () { // start() is called once we are ready to send the outgoing HTTP request. // this is usually called on the first write(), end() or on nextTick() var self = this - , startTime if (self._aborted) { return @@ -898,11 +897,10 @@ Request.prototype.start = function () { debug('make request', self.uri.href) - startTime = new Date().getTime() self.req = self.httpModule.request(reqOptions) if (self.timing) { - self.startTime = startTime + self.startTime = new Date().getTime() } if (self.timeout && !self.timeoutTimer) { diff --git a/tests/test-timing.js b/tests/test-timing.js index 9ef8f7b5d..5040b5c78 100644 --- a/tests/test-timing.js +++ b/tests/test-timing.js @@ -30,10 +30,6 @@ tape('setup', function(t) { }) }) -tape('no-op', function(t) { - t.end() -}) - tape('non-redirected request is timed', function(t) { var options = {time: true} request('http://localhost:' + plain_server.port + '/', options, function(err, res, body) {