oasisprotocol / sapphire-paratime

Oasis Sapphire - the confidential EVM-compatible ParaTime for the Oasis Network
https://oasisprotocol.org/sapphire
Apache License 2.0
39 stars 27 forks source link

Fix SIWE intermittent test issue #443

Closed matevz closed 1 month ago

matevz commented 1 month ago

Fails here: https://github.com/oasisprotocol/sapphire-paratime/blob/a4beb2acfcb993af66299022b5db2ba984908f8d/contracts/test/auth.ts#L167

If the block takes too much time to be mined, then the last block timestamp is still considered and the bearer is not expired yet. Fix the test so that it waits for the block to be mined with the timestamp greater than expiration.