Skip to content

Commit

Permalink
Merge pull request #1244 from uProxy/salomegeo-generic-core
Browse files Browse the repository at this point in the history
change monitoring interval from 5s to 1 minute
  • Loading branch information
salomegeo committed Apr 13, 2015
2 parents e1fec9b + d007ebd commit 7b6f82e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/generic_core/social.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand Down Expand Up @@ -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(() => {
(<any>friend.monitor).calls.reset();
jasmine.clock().tick(5000);
jasmine.clock().tick(60000);
expect(friend.monitor).not.toHaveBeenCalled();
jasmine.clock().uninstall();
}).then(done);
Expand Down
2 changes: 1 addition & 1 deletion src/generic_core/social.ts
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ module Social {
this.getUser(userId).monitor();
}
};
this.monitorIntervalId_ = setInterval(monitorCallback, 5000);
this.monitorIntervalId_ = setInterval(monitorCallback, 60000);
}

private stopMonitor_ = () : void => {
Expand Down

0 comments on commit 7b6f82e

Please sign in to comment.