-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/7857/
-----------------------------------------------------------

Review request for shindig and Dan Dumont.


Description
-------

>From the Jira:
When using the "preloadMetadatas" and "preloadTokens" optional config when 
constructing an osapi.container.Container, the token refresh schedule will be 
based on the TTL of whatever is in "preloadMetadatas" and not "preloadTokens".


This addresses bug SHINDIG-1880.
    https://issues.apache.org/jira/browse/SHINDIG-1880


Diffs
-----

  
http://svn.apache.org/repos/asf/shindig/trunk/features/src/main/javascript/features/container/container.js
 1405426 
  
http://svn.apache.org/repos/asf/shindig/trunk/features/src/test/javascript/features/container/container_test.js
 1405426 

Diff: https://reviews.apache.org/r/7857/diff/


Testing
-------

Wrote some new JSUnits to cover this use case.  These are included in the 
patch.  Some of the "window.setTimeout" code in the JSUnit is odd, but it's the 
only way I could get it to not puke with reference errors saying that 
"setTimeout" is undefined when it is called in 
osapi.container.Container.scheduleRefreshTokens_.


Thanks,

Stanton Sievers

Reply via email to