You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get the following tests intermittently failing, even on main: rejects with 401 an external partys attempt to ProtocolsQuery if the grant is not yet active
I get the following tests intermittently failing, even on main:
rejects with 401 an external partys attempt to ProtocolsQuery if the grant is not yet active
Noticed on this PR run:
https://github.com/TBD54566975/dwn-sdk-js/actions/runs/5928353825/job/16073770372?pr=480
Tried to re-create on
main
by re-running tests back to back and was eventually able to trigger the ProtocolsQuery failure on main locally.I put some logging in before catching it and got the following:
protocolsQueryTimestamp: 2023-08-21T16:14:37.169477Z
dateGranted: 2023-08-21T16:14:37.169477Z
It seems that putting sleep(1) still produces an identical timestamp in some rare cases.
https://github.com/TBD54566975/dwn-sdk-js/blob/5b7ebb836b1c11498a41653a984f930b49823844/tests/handlers/protocols-query.spec.ts#L276C1-L276C1
Will update this to sleep for 2 ms.
The text was updated successfully, but these errors were encountered: