Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes race condition in
authbase0
test case
There was an intentional change in realtime code regarding populating `TokenDetails.issued` field based on `timestamp` field provided by the request [1]. Starting from this change, provided `timestamp` field can now used to set the `TokenDetails.issued` field. It is done to "Make it easier to construct reliable tests for eg token expiry and revocation, by controlling the timestamp we pass in." This does, however, mean that in order for time-sensitive tests to work properly and avoid race conditions, we need to always either set `queryTime: true` or set `queryTime: false`. We need to ensure that we use the same value everywhere, so that the realtime code returns `TokenDetails.issued` based on consistent data when we need to check it. This commit does that for the tests where we use `TokenDetails.issued` in assertions. Resolves #1578 [1] ably/realtime@359930d
- Loading branch information