fix test for IE

This commit is contained in:
Spencer Alger
2015-01-11 00:46:10 -07:00
parent eb2ae14934
commit 88bff6e67d

View File

@ -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