-
-
Notifications
You must be signed in to change notification settings - Fork 604
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Age fallback using origin_server_ts instead of 0 (#3839)
* Age fallback using origin_server_ts instead of 0 Signed-off-by: Timo K <[email protected]> * use getMsUntilExpiry for isExpired Signed-off-by: Timo K <[email protected]> * fix tests tests now also rely on localTimestamp. So this need to be mocked as well Signed-off-by: Timo K <[email protected]> * fix another test that now also depends on localTimestamp Signed-off-by: Timo K <[email protected]> * fix tests and cleanup Signed-off-by: Timo K <[email protected]> * format Signed-off-by: Timo K <[email protected]> * make things simpler by calculating localTimestamp from getLocalAge Signed-off-by: Timo K <[email protected]> * this test was not covered by the change to mockRTCEvent Signed-off-by: Timo K <[email protected]> * format Signed-off-by: Timo K <[email protected]> --------- Signed-off-by: Timo K <[email protected]>
- Loading branch information
Showing
4 changed files
with
22 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters