Created
July 2, 2018 00:26
-
-
Save feuGeneA/1b606ccfd44cb29c9d32a614d2ce8428 to your computer and use it in GitHub Desktop.
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
gene@precision5510:~/0x-monorepo/packages/subproviders$ yarn test | |
yarn run v1.7.0 | |
$ npm run test:unit | |
> @0xproject/subproviders@0.10.4 test:unit /home/gene/0x-monorepo/packages/subproviders | |
> run-s clean build run_mocha_unit | |
> @0xproject/subproviders@0.10.4 clean /home/gene/0x-monorepo/packages/subproviders | |
> shx rm -rf lib scripts | |
> @0xproject/subproviders@0.10.4 build /home/gene/0x-monorepo/packages/subproviders | |
> tsc && copyfiles -u 3 './lib/src/monorepo_scripts/**/*' ./scripts | |
> @0xproject/subproviders@0.10.4 run_mocha_unit /home/gene/0x-monorepo/packages/subproviders | |
> mocha --require source-map-support/register --require make-promises-safe lib/test/unit/**/*_test.js --timeout 40000 --bail --exit | |
LedgerSubprovider | |
direct method calls | |
success cases | |
✓ returns default number of accounts | |
✓ returns requested number of accounts | |
✓ signs a personal message | |
failure cases | |
✓ cannot open multiple simultaneous connections to the Ledger device | |
calls through a provider | |
success cases | |
✓ returns a list of accounts (65ms) | |
✓ signs a personal message with eth_sign | |
✓ signs a personal message with personal_sign | |
✓ signs a transaction | |
failure cases | |
✓ should throw if `data` param not hex when calling eth_sign | |
✓ should throw if `data` param not hex when calling personal_sign | |
✓ should throw if `from` param missing when calling eth_sendTransaction | |
✓ should throw if `from` param invalid address when calling eth_sendTransaction | |
MnemonicWalletSubprovider | |
direct method calls | |
success cases | |
✓ returns the accounts | |
✓ signs a personal message | |
✓ signs a personal message with second address | |
✓ signs a transaction | |
✓ signs a transaction with the second address | |
failure cases | |
✓ throws an error if address is invalid | |
✓ throws an error if address is valid format but not found (88ms) | |
calls through a provider | |
success cases | |
✓ returns a list of accounts | |
✓ signs a personal message with eth_sign | |
✓ signs a personal message with personal_sign | |
failure cases | |
✓ should throw if `data` param not hex when calling eth_sign | |
✓ should throw if `data` param not hex when calling personal_sign | |
✓ should throw if `address` param not found when calling personal_sign (100ms) | |
✓ should throw if `from` param missing when calling eth_sendTransaction | |
✓ should throw if `from` param invalid address when calling eth_sendTransaction | |
NonceTrackerSubprovider | |
✓ successfully caches the transaction count | |
✓ does not cache the result for latest transaction count | |
✓ clears the cache on a Nonce Too Low Error | |
✓ increments the used nonce when a transaction successfully submits | |
PrivateKeyWalletSubprovider | |
direct method calls | |
success cases | |
✓ returns the account | |
✓ signs a personal message | |
✓ signs a transaction | |
calls through a provider | |
success cases | |
✓ returns a list of accounts | |
✓ signs a personal message with eth_sign | |
✓ signs a personal message with personal_sign | |
failure cases | |
✓ should throw if `data` param not hex when calling eth_sign | |
✓ should throw if `data` param not hex when calling personal_sign | |
✓ should throw if `address` param is not the address from private key when calling personal_sign | |
✓ should throw if `from` param missing when calling eth_sendTransaction | |
✓ should throw if `from` param invalid address when calling eth_sendTransaction | |
✓ should throw if `address` param not found when calling personal_sign | |
RedundantSubprovider | |
✓ succeeds when supplied a healthy endpoint | |
1) succeeds when supplied at least one healthy endpoint | |
44 passing (41s) | |
1 failing | |
1) RedundantSubprovider | |
succeeds when supplied at least one healthy endpoint: | |
Error: Timeout of 10000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. | |
npm ERR! code ELIFECYCLE | |
npm ERR! errno 1 | |
npm ERR! @0xproject/subproviders@0.10.4 run_mocha_unit: `mocha --require source-map-support/register --require make-promises-safe lib/test/unit/**/*_test.js --timeout 40000 --bail --exit` | |
npm ERR! Exit status 1 | |
npm ERR! | |
npm ERR! Failed at the @0xproject/subproviders@0.10.4 run_mocha_unit script. | |
npm ERR! This is probably not a problem with npm. There is likely additional logging output above. | |
npm ERR! A complete log of this run can be found in: | |
npm ERR! /home/gene/.npm/_logs/2018-07-02T00_18_10_897Z-debug.log | |
ERROR: "run_mocha_unit" exited with 1. | |
npm ERR! code ELIFECYCLE | |
npm ERR! errno 1 | |
npm ERR! @0xproject/subproviders@0.10.4 test:unit: `run-s clean build run_mocha_unit` | |
npm ERR! Exit status 1 | |
npm ERR! | |
npm ERR! Failed at the @0xproject/subproviders@0.10.4 test:unit script. | |
npm ERR! This is probably not a problem with npm. There is likely additional logging output above. | |
npm ERR! A complete log of this run can be found in: | |
npm ERR! /home/gene/.npm/_logs/2018-07-02T00_18_10_914Z-debug.log | |
error Command failed with exit code 1. | |
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment