Skip to content

Commit ea22184

Browse files
Merge pull request #311 from stephenplusplus/spp--runcover
fixes #309 - restore https.request
2 parents 606d13d + c591d0b commit ea22184

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

test/datastore/request.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
/*global describe, it, beforeEach */
17+
/*global describe, it, beforeEach, after */
1818

1919
'use strict';
2020

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

33+
var httpsRequestCached = https.request;
3334
var httpsRequestOverride = util.noop;
3435

3536
extend(true, https, {
@@ -78,6 +79,10 @@ describe('Request', function() {
7879
};
7980
});
8081

82+
after(function() {
83+
https.request = httpsRequestCached;
84+
});
85+
8186
describe('get', function() {
8287
it('should get by key', function(done) {
8388
request.makeReq_ = function(method, req, callback) {

0 commit comments

Comments
 (0)