@ -74,7 +74,7 @@ describe('Transport Class', function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('schedules a sniff when sniffInterval is set', function () {
|
it('schedules a sniff when sniffInterval is set', function () {
|
||||||
var clock = sinon.useFakeTimers();
|
var clock = sinon.useFakeTimers('setTimeout');
|
||||||
stub.autoRelease(clock);
|
stub.autoRelease(clock);
|
||||||
stub(Transport.prototype, 'sniff');
|
stub(Transport.prototype, 'sniff');
|
||||||
|
|
||||||
@ -627,7 +627,7 @@ describe('Transport Class', function () {
|
|||||||
|
|
||||||
describe('timeout', function () {
|
describe('timeout', function () {
|
||||||
it('uses 30 seconds for the default', function () {
|
it('uses 30 seconds for the default', function () {
|
||||||
var clock = sinon.useFakeTimers();
|
var clock = sinon.useFakeTimers('setTimeout');
|
||||||
stub.autoRelease(clock);
|
stub.autoRelease(clock);
|
||||||
var tran = new Transport({});
|
var tran = new Transport({});
|
||||||
var err;
|
var err;
|
||||||
@ -643,7 +643,7 @@ describe('Transport Class', function () {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
it('inherits the requestTimeout from the transport', function () {
|
it('inherits the requestTimeout from the transport', function () {
|
||||||
var clock = sinon.useFakeTimers();
|
var clock = sinon.useFakeTimers('setTimeout');
|
||||||
stub.autoRelease(clock);
|
stub.autoRelease(clock);
|
||||||
var tran = new Transport({
|
var tran = new Transport({
|
||||||
requestTimeout: 5000
|
requestTimeout: 5000
|
||||||
|
|||||||
Reference in New Issue
Block a user