Skip to content

Instantly share code, notes, and snippets.

@michaelsbradleyjr
Created October 22, 2019 15:03
Show Gist options
  • Save michaelsbradleyjr/2ce39a5b05477993aee0682bc2652ab1 to your computer and use it in GitHub Desktop.
Save michaelsbradleyjr/2ce39a5b05477993aee0682bc2652ab1 to your computer and use it in GitHub Desktop.
after deploying contracts
==========================
PASS SimpleStorage should set constructor value > 0.015s > 0 gas
PASS SimpleStorage set storage value > 0.064s > 53,294 gas
FAIL SimpleStorage should set to self address > 0.015s > 26,647 gas > Input A expected to strictly equal input B:
+ expected - actual
- '0x0000000000000000000000000000000000000000'
+ '0x04D45b51fe4f00b4478F8b0719Fa779f14c8A194'
PASS SimpleStorage should have the right defaultAccount > 0s > 0 gas
PASS SimpleStorage should alias contract address > 0s > 0 gas
PASS SimpleStorage listens to events > 0.127s > 57,256 gas
PASS SimpleStorage asserts event triggered > 0.046s > 57,256 gas
Error returned from the node: VM Exception while processing transaction: revert Value needs to be higher than 5
PASS SimpleStorage should revert with a value lower than 5 > 0.036s > 0 gas
==========================
before deploying contracts
==========================
No namesystem client started
==========================
after deploying contracts
==========================
PASS Token Token Contract not deploy Token > 0s > 0 gas
PASS Token MyToken Contracts should deploy MyToken and MyToken2 > 0s > 0 gas
PASS Token MyToken Contracts set MyToken Balance correctly > 0.014s > 0 gas
PASS Token MyToken Contracts set MyToken2 Balance correctly > 0.017s > 0 gas
PASS Token Other Contracts get right address > 0s > 0 gas
PASS Token Other Contracts should use onDeploy > 0.013s > 0 gas
FAIL Token Other Contracts should not deploy if deployIf returns false > 0.014s > 0 gas > The expression evaluated to a falsy value:
assert.ok(!SomeContract.options.address)
/Users/michael/repos/embark/dapps/tests/app/.embark/test/solidity_test.sol:7:3: Warning: No visibility specified. Defaulting to "public".
function beforeAll() {
^ (Relevant source part starts here and spans across multiple lines).
==========================
before deploying contracts
==========================
==========================
after deploying contracts
==========================
⚠ warning DO NOT TRY TO ACCESS (IN YOUR SOLIDITY TEST) AN ACCOUNT GREATER THAN THE LENGTH OF THE FOLLOWING ARRAY (10) :
⚠ warning [ '0x7CF1e63623d2f6a713540005a7f52Ff0b27B256A',
'0x3b67CC5EFCA9baed7a1ff5BF444A4135dE65De3A',
'0x8f91f7DB5cFf992A6464B9b7570810F5a918BFaf',
'0xA0c4718585994100E66c6B26722Cf72c60C9AeA5',
'0x379f7FA87bD14823E5cF12be5D5Da85d80761f93',
'0x26714E84ea2de58f2d145B3243C8c82Cccea25D6',
'0x81Ac48148b0310E4fD5728Cdb5204d31C47da7F7',
'0xBBD6C2C740532aC347DCa1b70909DF9c127fC137',
'0x9Ecd4efB5F7051D8400fAC36b763d4eb4eB0Bb14',
'0x5E952484F5aA586C071ed164Fda10D71b4f13151' ]
⚠ warning e.g: the following code won't work in the current context:
⚠ warning TestsAccounts.getAccount(10)
PASS MyTest Value should be1 > 1s > 4,922,131 gas
Failed 2 / 34 test(s).
error Command failed with exit code 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment