From d007ebd780df064d1a721302df451657569b2dc9 Mon Sep 17 00:00:00 2001 From: Salome Vakhtangadze Date: Thu, 9 Apr 2015 17:08:34 -0400 Subject: [PATCH] change monitoring interval from 5s to 1 minute --- src/generic_core/social.spec.ts | 6 +++--- src/generic_core/social.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/generic_core/social.spec.ts b/src/generic_core/social.spec.ts index 04b4833747..40426028cf 100644 --- a/src/generic_core/social.spec.ts +++ b/src/generic_core/social.spec.ts @@ -126,7 +126,7 @@ describe('Social.FreedomNetwork', () => { expect(friend).toBeDefined(); spyOn(friend, 'monitor'); // Advance clock 5 seconds and make sure monitoring was called. - jasmine.clock().tick(5000); + jasmine.clock().tick(60000); expect(friend.monitor).toHaveBeenCalled(); done(); }); @@ -155,12 +155,12 @@ describe('Social.FreedomNetwork', () => { expect(friend).toBeDefined(); spyOn(friend, 'monitor'); // Monitoring is still running. - jasmine.clock().tick(5000); + jasmine.clock().tick(60000); expect(friend.monitor).toHaveBeenCalled(); network.logout().then(() => { (friend.monitor).calls.reset(); - jasmine.clock().tick(5000); + jasmine.clock().tick(60000); expect(friend.monitor).not.toHaveBeenCalled(); jasmine.clock().uninstall(); }).then(done); diff --git a/src/generic_core/social.ts b/src/generic_core/social.ts index ea3235d3d9..922dc2a162 100644 --- a/src/generic_core/social.ts +++ b/src/generic_core/social.ts @@ -585,7 +585,7 @@ module Social { this.getUser(userId).monitor(); } }; - this.monitorIntervalId_ = setInterval(monitorCallback, 5000); + this.monitorIntervalId_ = setInterval(monitorCallback, 60000); } private stopMonitor_ = () : void => {