Skip to content

Commit

Permalink
Merge pull request #311 from stephenplusplus/spp--runcover
Browse files Browse the repository at this point in the history
fixes #309 - restore https.request
  • Loading branch information
stephenplusplus committed Nov 24, 2014
2 parents 606d13d + c591d0b commit ea22184
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/datastore/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

/*global describe, it, beforeEach */
/*global describe, it, beforeEach, after */

'use strict';

Expand All @@ -30,6 +30,7 @@ var Query = require('../../lib/datastore/query.js');
var Stream = require('stream');
var util = require('../../lib/common/util.js');

var httpsRequestCached = https.request;
var httpsRequestOverride = util.noop;

extend(true, https, {
Expand Down Expand Up @@ -78,6 +79,10 @@ describe('Request', function() {
};
});

after(function() {
https.request = httpsRequestCached;
});

describe('get', function() {
it('should get by key', function(done) {
request.makeReq_ = function(method, req, callback) {
Expand Down

0 comments on commit ea22184

Please sign in to comment.