-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
himanshu
committed
Feb 4, 2024
1 parent
38dc335
commit 8b3f56f
Showing
2 changed files
with
5 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ const TORUS_TEST_AGGREGATE_VERIFIER = "torus-aggregate-sapphire-mainnet"; | |
const HashEnabledVerifier = "torus-test-verifierid-hash"; | ||
const TORUS_EXTENDED_VERIFIER_EMAIL = "[email protected]"; | ||
|
||
describe.only("torus utils sapphire mainnet", function () { | ||
describe("torus utils sapphire mainnet", function () { | ||
let torus: TorusUtils; | ||
let TORUS_NODE_MANAGER: NodeManager; | ||
|
||
|
@@ -386,7 +386,8 @@ describe.only("torus utils sapphire mainnet", function () { | |
const parsedSigsData = signatures.map((s) => JSON.parse(atob(s.data))); | ||
parsedSigsData.forEach((ps) => { | ||
const sessionTime = ps.exp - Math.floor(Date.now() / 1000); | ||
expect(sessionTime).eql(customSessionTime); | ||
const sessionTimeVariance = customSessionTime - sessionTime <= 1; // there can be some variance of 1 sec as we are doing floor op here. | ||
expect(sessionTimeVariance).eql(true); | ||
}); | ||
}); | ||
}); |