From 88bff6e67d94b647cc4f40024491f5cbf73144e6 Mon Sep 17 00:00:00 2001 From: Spencer Alger Date: Sun, 11 Jan 2015 00:46:10 -0700 Subject: [PATCH] fix test for IE --- test/unit/specs/transport.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/specs/transport.js b/test/unit/specs/transport.js index 0072d9dd6..b1480b556 100644 --- a/test/unit/specs/transport.js +++ b/test/unit/specs/transport.js @@ -627,7 +627,7 @@ describe('Transport Class', function () { describe('timeout', function () { it('uses 30 seconds for the default', function () { - var clock = sinon.useFakeTimers(); + var clock = sinon.useFakeTimers('setTimeout'); stub.autoRelease(clock); var tran = new Transport({}); var err; @@ -643,7 +643,7 @@ describe('Transport Class', function () { }); }); it('inherits the requestTimeout from the transport', function () { - var clock = sinon.useFakeTimers(); + var clock = sinon.useFakeTimers('setTimeout'); stub.autoRelease(clock); var tran = new Transport({ requestTimeout: 5000