1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +01:00
metamask-extension/test
Mark Stacey b7033196d2
Add timeout to wait-until-called (#9996)
The `waitUntilCalled` utility now has a timeout. It will now throw an
error if the stub is not called enough times, rather than blocking
forever.

The return type had to be changed to a function, so that we could throw
when the timeout is triggered. I tried returning an error that rejected
first, but if you don't handle the error synchronously Node.js will
consider it to be an unhandled Promise rejected (even if it _is_
handled later on).

I worked around this by resolving in the timeout case as well, so that
there is never a "deferred" Promise exception in the timeout case. The
returned function re-throws the error if it's given. That way there is
never any unhandled Promise rejection.
2020-12-04 13:47:57 -03:30
..
data Remove use of ethgasstation; use metaswap /gasPrices api for gas price estimates (#9867) 2020-12-02 19:55:19 -03:30
e2e Add timeout to wait-until-called (#9996) 2020-12-04 13:47:57 -03:30
lib Add timeout to wait-until-called (#9996) 2020-12-04 13:47:57 -03:30
stub json-rpc-engine@6.1.0 (#9922) 2020-12-02 11:41:24 -08:00
unit Add timeout to wait-until-called (#9996) 2020-12-04 13:47:57 -03:30
unit-global Add SES lockdown to extension webapp (#9729) 2020-11-24 11:26:43 +08:00
env.js Remove cross-env (#7950) 2020-01-30 14:11:26 -03:30
helper.js Migration to remove legacy local storage keys from localStorage (#9986) 2020-12-03 20:25:23 -03:30
setup.js Remove obs-store babel register handling (#8413) 2020-04-27 07:54:42 -07:00