Skip to content

Instantly share code, notes, and snippets.

@TimTinkers
Created January 13, 2018 16:58
Show Gist options
  • Save TimTinkers/f98cba449b43e3099420150cbb6977d0 to your computer and use it in GitHub Desktop.
Save TimTinkers/f98cba449b43e3099420150cbb6977d0 to your computer and use it in GitHub Desktop.
Console logs demonstrating nondeterministic testing behavior.
C:\Users\Tim Clancy\Desktop\testZep\zeppelin-solidity>truffle test --network development
Compiling .\contracts\Bounty.sol...
Compiling .\contracts\DayLimit.sol...
Compiling .\contracts\ECRecovery.sol...
Compiling .\contracts\LimitBalance.sol...
Compiling .\contracts\MerkleProof.sol...
Compiling .\contracts\ReentrancyGuard.sol...
Compiling .\contracts\crowdsale\CappedCrowdsale.sol...
Compiling .\contracts\crowdsale\Crowdsale.sol...
Compiling .\contracts\crowdsale\FinalizableCrowdsale.sol...
Compiling .\contracts\crowdsale\RefundVault.sol...
Compiling .\contracts\crowdsale\RefundableCrowdsale.sol...
Compiling .\contracts\examples\SampleCrowdsale.sol...
Compiling .\contracts\examples\SimpleToken.sol...
Compiling .\contracts\lifecycle\Destructible.sol...
Compiling .\contracts\lifecycle\Migrations.sol...
Compiling .\contracts\lifecycle\Pausable.sol...
Compiling .\contracts\lifecycle\TokenDestructible.sol...
Compiling .\contracts\math\Math.sol...
Compiling .\contracts\math\SafeMath.sol...
Compiling .\contracts\mocks\BasicTokenMock.sol...
Compiling .\contracts\mocks\BurnableTokenMock.sol...
Compiling .\contracts\mocks\CappedCrowdsaleImpl.sol...
Compiling .\contracts\mocks\DayLimitMock.sol...
Compiling .\contracts\mocks\DetailedERC20Mock.sol...
Compiling .\contracts\mocks\ECRecoveryMock.sol...
Compiling .\contracts\mocks\ERC23TokenMock.sol...
Compiling .\contracts\mocks\FinalizableCrowdsaleImpl.sol...
Compiling .\contracts\mocks\ForceEther.sol...
Compiling .\contracts\mocks\HasNoEtherTest.sol...
Compiling .\contracts\mocks\InsecureTargetBounty.sol...
Compiling .\contracts\mocks\LimitBalanceMock.sol...
Compiling .\contracts\mocks\PausableMock.sol...
Compiling .\contracts\mocks\PausableTokenMock.sol...
Compiling .\contracts\mocks\PullPaymentMock.sol...
Compiling .\contracts\mocks\RBACMock.sol...
Compiling .\contracts\mocks\ReentrancyAttack.sol...
Compiling .\contracts\mocks\ReentrancyMock.sol...
Compiling .\contracts\mocks\RefundableCrowdsaleImpl.sol...
Compiling .\contracts\mocks\SafeERC20Helper.sol...
Compiling .\contracts\mocks\SafeMathMock.sol...
Compiling .\contracts\mocks\SecureTargetBounty.sol...
Compiling .\contracts\mocks\StandardTokenMock.sol...
Compiling .\contracts\ownership\CanReclaimToken.sol...
Compiling .\contracts\ownership\Claimable.sol...
Compiling .\contracts\ownership\Contactable.sol...
Compiling .\contracts\ownership\DelayedClaimable.sol...
Compiling .\contracts\ownership\HasNoContracts.sol...
Compiling .\contracts\ownership\HasNoEther.sol...
Compiling .\contracts\ownership\HasNoTokens.sol...
Compiling .\contracts\ownership\NoOwner.sol...
Compiling .\contracts\ownership\Ownable.sol...
Compiling .\contracts\ownership\rbac\RBAC.sol...
Compiling .\contracts\ownership\rbac\Roles.sol...
Compiling .\contracts\payment\PullPayment.sol...
Compiling .\contracts\payment\SplitPayment.sol...
Compiling .\contracts\token\BasicToken.sol...
Compiling .\contracts\token\BurnableToken.sol...
Compiling .\contracts\token\CappedToken.sol...
Compiling .\contracts\token\DetailedERC20.sol...
Compiling .\contracts\token\ERC20.sol...
Compiling .\contracts\token\ERC20Basic.sol...
Compiling .\contracts\token\MintableToken.sol...
Compiling .\contracts\token\PausableToken.sol...
Compiling .\contracts\token\SafeERC20.sol...
Compiling .\contracts\token\StandardToken.sol...
Compiling .\contracts\token\TokenTimelock.sol...
Compiling .\contracts\token\TokenVesting.sol...
Compilation warnings encountered:
/C/Users/Tim Clancy/Desktop/testZep/zeppelin-solidity/contracts/crowdsale/FinalizableCrowdsale.sol:38:3: Warning: Function state mutability can be restricted to pure
function finalization() internal {
^
Spanning multiple lines.
,/C/Users/Tim Clancy/Desktop/testZep/zeppelin-solidity/contracts/ownership/HasNoTokens.sol:20:3: Warning: Function state mutability can be restricted to pure
function tokenFallback(address from_, uint256 value_, bytes data_) external {
^
Spanning multiple lines.
Contract: BasicToken
√ should return the correct totalSupply after construction (90ms)
√ should return correct balances after transfer (186ms)
√ should throw an error when trying to transfer more than balance (104ms)
√ should throw an error when trying to transfer to 0x0 (112ms)
Contract: Bounty
√ sets reward (410ms)
√ empties itself when destroyed (597ms)
Against secure contract
√ cannot claim reward (1385ms)
Against broken contract
√ claims reward (1532ms)
Contract: BurnableToken
√ owner should be able to burn tokens (87ms)
√ cannot burn more tokens than your balance (38ms)
Contract: CanReclaimToken
√ should allow owner to reclaim tokens (108ms)
√ should allow only owner to reclaim tokens
Contract: CappedCrowdsale
creating a valid crowdsale
√ should fail with zero cap (83ms)
accepting payments
√ should accept payments within cap (166ms)
√ should reject payments outside cap (106ms)
√ should reject payments that exceed cap
ending
√ should not be ended if under cap (123ms)
√ should not be ended if just under cap (88ms)
√ should be ended if cap reached (81ms)
Contract: Capped
√ should start with the correct cap
√ should mint when amount is less than cap (62ms)
√ should fail to mint if the ammount exceeds the cap (94ms)
√ should fail to mint after cap is reached (121ms)
Contract: Claimable
√ should have an owner
√ changes pendingOwner after transfer (61ms)
√ should prevent to claimOwnership from no pendingOwner
√ should prevent non-owners from transfering (48ms)
after initiating a transfer
√ changes allow pending owner to claim ownership (60ms)
Contract: Contactable
√ should have an empty contact info
after setting the contact information
√ should return the setted contact information
Contract: Crowdsale
√ should be token owner
√ should be ended only after end (200ms)
accepting payments
√ should reject payments before start (63ms)
√ should accept payments after start (345ms)
√ should reject payments after end (235ms)
high-level purchase
√ should log purchase (74ms)
√ should increase totalSupply (84ms)
√ should assign tokens to sender (92ms)
√ should forward funds to wallet (383ms)
low-level purchase
√ should log purchase (82ms)
√ should increase totalSupply (98ms)
√ should assign tokens to beneficiary (78ms)
√ should forward funds to wallet (429ms)
Contract: DayLimit
√ should construct with the passed daily limit
√ should be able to spend if daily limit is not reached (150ms)
√ should prevent spending if daily limit is reached (96ms)
√ should allow spending if daily limit is reached and then set higher (254ms)
√ should allow spending if daily limit is reached and then amount spent is reset (218ms)
√ should allow spending if daily limit is reached and then the next has come (485ms)
Contract: DelayedClaimable
√ can set claim blocks (140ms)
√ changes pendingOwner after transfer successful (213ms)
√ changes pendingOwner after transfer fails (215ms)
√ set end and start invalid values fail (109ms)
Contract: Destructible
√ should send balance to owner after destruction (409ms)
√ should send balance to recepient after destruction (585ms)
Contract: DetailedERC20
√ has a name
√ has a symbol
√ has an amount of decimals
Contract: ECRecovery
√ recover v0 (71ms)
√ recover v1 (71ms)
√ recover using web3.eth.sign() (226ms)
√ recover using web3.eth.sign() should return wrong signer (256ms)
√ recover should fail when a wrong hash is sent (242ms)
Contract: FinalizableCrowdsale
√ cannot be finalized before ending
√ cannot be finalized by third party after ending (342ms)
√ can be finalized by owner after ending (236ms)
√ cannot be finalized twice (297ms)
√ logs finalized (241ms)
Contract: HasNoContracts
√ should allow owner to reclaim contracts (67ms)
√ should allow only owner to reclaim contracts
Contract: HasNoEther
√ should be constructorable (61ms)
√ should not accept ether in constructor
√ should not accept ether (85ms)
√ should allow owner to reclaim ether (982ms)
√ should allow only owner to reclaim ether (424ms)
Contract: HasNoTokens
√ should not accept ERC23 tokens (46ms)
√ should allow owner to reclaim tokens (100ms)
√ should allow only owner to reclaim tokens
Contract: LimitBalance
√ should expose limit
√ should allow sending below limit (210ms)
√ shouldnt allow sending above limit (61ms)
√ should allow multiple sends below limit (386ms)
√ shouldnt allow multiple sends above limit (263ms)
Contract: MerkleProof
verifyProof
√ should return true for a valid Merkle proof
√ should return false for an invalid Merkle proof
√ should return false for a Merkle proof of invalid length
Contract: Mintable
√ should start with a totalSupply of 0
√ should return mintingFinished false after construction
√ should mint a given amount of tokens to a given address (87ms)
√ should fail to mint after call to finishMinting (93ms)
Contract: Ownable
√ should have an owner
√ changes owner after transfer (59ms)
√ should prevent non-owners from transfering (44ms)
√ should guard ownership against stuck state (46ms)
Contract: Pausable
√ can perform normal process in non-pause (157ms)
√ can not perform normal process in pause (165ms)
√ can not take drastic measure in non-pause (118ms)
√ can take a drastic measure in a pause (175ms)
√ should resume allowing normal process after pause is over (207ms)
√ should prevent drastic measure after pause is over (204ms)
Contract: PausableToken
√ should return paused false after construction
√ should return paused true after pause (56ms)
√ should return paused false after pause and unpause (123ms)
√ should be able to transfer if transfers are unpaused (77ms)
√ should be able to transfer after transfers are paused and unpaused (165ms)
√ should throw an error trying to transfer while transactions are paused (82ms)
√ should throw an error trying to transfer from another account while transactions are paused (89ms)
Contract: PullPayment
√ can't call asyncSend externally
√ can record an async payment correctly (78ms)
√ can add multiple balances on one account (162ms)
√ can add balances on multiple accounts (149ms)
√ can withdraw payment (486ms)
Contract: RBAC
in normal conditions
√ allows admin to call #onlyAdminsCanDoThis
√ allows admin to call #onlyAdvisorsCanDoThis
√ allows advisors to call #onlyAdvisorsCanDoThis
√ allows admin to call #eitherAdminOrAdvisorCanDoThis
√ allows advisors to call #eitherAdminOrAdvisorCanDoThis
√ does not allow admins to call #nobodyCanDoThis
√ does not allow advisors to call #nobodyCanDoThis
√ does not allow anyone to call #nobodyCanDoThis
√ allows an admin to remove an advisor's role (68ms)
√ allows admins to #adminRemoveRole (50ms)
√ announces a RoleAdded event on addRole
√ announces a RoleRemoved event on removeRole
in adversarial conditions
√ does not allow an advisor to remove another advisor
√ does not allow "anyone" to remove an advisor
Contract: ReentrancyGuard
√ should not allow remote callback (106ms)
√ should not allow local recursion
√ should not allow indirect local recursion (63ms)
Contract: RefundableCrowdsale
√ should deny refunds before end (244ms)
√ should deny refunds after end if goal was reached (595ms)
√ should allow refunds after end if goal was not reached (916ms)
√ should forward funds to wallet after end if goal was reached (822ms)
creating a valid crowdsale
√ should fail with zero goal (96ms)
Contract: SafeERC20
√ should throw on failed transfer (44ms)
√ should throw on failed transferFrom (38ms)
√ should throw on failed approve
√ should not throw on succeeding transfer (43ms)
√ should not throw on succeeding transferFrom (46ms)
√ should not throw on succeeding approve (57ms)
Contract: RefundVault
√ should accept contributions (47ms)
√ should not refund contribution during active state (84ms)
√ only owner can enter refund mode (122ms)
√ should refund contribution after entering refund mode (472ms)
√ only owner can close (76ms)
√ should forward funds to wallet after closing (458ms)
Contract: SafeMath
√ multiplies correctly (57ms)
√ adds correctly (50ms)
√ subtracts correctly (61ms)
√ should throw an error if subtraction result would be negative
√ should throw an error on addition overflow
√ should throw an error on multiplication overflow
Contract: SampleCrowdsale
√ should create crowdsale with correct parameters (98ms)
√ should not accept payments before start (87ms)
√ should accept payments during the sale (300ms)
√ should reject payments after end (255ms)
√ should reject payments over cap (301ms)
√ should allow finalization and transfer funds to wallet if the goal is reached (886ms)
√ should allow refunds if the goal is not reached (858ms)
Contract: SimpleToken
√ has a name
√ has a symbol
√ has 18 decimals
√ assigns the initial total supply to the creator (182ms)
Contract: StandardToken
√ should return the correct totalSupply after construction
√ should return the correct allowance amount after approval (134ms)
√ should return correct balances after transfer (141ms)
√ should throw an error when trying to transfer more than balance (109ms)
√ should return correct balances after transfering from another account (211ms)
√ should throw an error when trying to transfer more than allowed (76ms)
√ should throw an error when trying to transferFrom more than _from has (81ms)
√ should increase by 50 then set to 0 when decreasing by more than 50 (98ms)
√ should throw an error when trying to transfer to 0x0 (96ms)
√ should throw an error when trying to transferFrom to 0x0 (179ms)
validating allowance updates to spender
√ should start with zero
√ should increase by 50 then decrease by 10 (134ms)
Contract: SplitPayment
√ should accept payments (370ms)
√ should store shares if address is payee
√ should not store shares if address is not payee
√ should throw if no funds to claim
√ should throw if non-payee want to claim (205ms)
√ should distribute funds to payees (1688ms)
Contract: TokenDestructible
√ should send balance to owner after destruction (370ms)
√ should send tokens to owner after destruction (212ms)
Contract: TokenTimelock
√ cannot be released before time limit
√ cannot be released just before time limit (253ms)
√ can be released just after limit (276ms)
√ can be released after time limit (298ms)
√ cannot be released twice (372ms)
Contract: TokenVesting
√ cannot be released before cliff (54ms)
√ can be released after cliff (305ms)
√ should release proper amount after cliff (416ms)
√ should linearly release tokens during vesting period (1262ms)
√ should have released all after end (260ms)
√ should be revoked by owner if revocable is set (82ms)
√ should fail to be revoked by owner if revocable not set (138ms)
√ should return the non-vested tokens when revoked by owner (279ms)
√ should keep the vested tokens when revoked by owner (334ms)
√ should fail to be revoked a second time (319ms)
198 passing (1m)
C:\Users\Tim Clancy\Desktop\testZep\zeppelin-solidity>truffle test --network development
Compiling .\contracts\Bounty.sol...
Compiling .\contracts\DayLimit.sol...
Compiling .\contracts\ECRecovery.sol...
Compiling .\contracts\LimitBalance.sol...
Compiling .\contracts\MerkleProof.sol...
Compiling .\contracts\ReentrancyGuard.sol...
Compiling .\contracts\crowdsale\CappedCrowdsale.sol...
Compiling .\contracts\crowdsale\Crowdsale.sol...
Compiling .\contracts\crowdsale\FinalizableCrowdsale.sol...
Compiling .\contracts\crowdsale\RefundVault.sol...
Compiling .\contracts\crowdsale\RefundableCrowdsale.sol...
Compiling .\contracts\examples\SampleCrowdsale.sol...
Compiling .\contracts\examples\SimpleToken.sol...
Compiling .\contracts\lifecycle\Destructible.sol...
Compiling .\contracts\lifecycle\Migrations.sol...
Compiling .\contracts\lifecycle\Pausable.sol...
Compiling .\contracts\lifecycle\TokenDestructible.sol...
Compiling .\contracts\math\Math.sol...
Compiling .\contracts\math\SafeMath.sol...
Compiling .\contracts\mocks\BasicTokenMock.sol...
Compiling .\contracts\mocks\BurnableTokenMock.sol...
Compiling .\contracts\mocks\CappedCrowdsaleImpl.sol...
Compiling .\contracts\mocks\DayLimitMock.sol...
Compiling .\contracts\mocks\DetailedERC20Mock.sol...
Compiling .\contracts\mocks\ECRecoveryMock.sol...
Compiling .\contracts\mocks\ERC23TokenMock.sol...
Compiling .\contracts\mocks\FinalizableCrowdsaleImpl.sol...
Compiling .\contracts\mocks\ForceEther.sol...
Compiling .\contracts\mocks\HasNoEtherTest.sol...
Compiling .\contracts\mocks\InsecureTargetBounty.sol...
Compiling .\contracts\mocks\LimitBalanceMock.sol...
Compiling .\contracts\mocks\PausableMock.sol...
Compiling .\contracts\mocks\PausableTokenMock.sol...
Compiling .\contracts\mocks\PullPaymentMock.sol...
Compiling .\contracts\mocks\RBACMock.sol...
Compiling .\contracts\mocks\ReentrancyAttack.sol...
Compiling .\contracts\mocks\ReentrancyMock.sol...
Compiling .\contracts\mocks\RefundableCrowdsaleImpl.sol...
Compiling .\contracts\mocks\SafeERC20Helper.sol...
Compiling .\contracts\mocks\SafeMathMock.sol...
Compiling .\contracts\mocks\SecureTargetBounty.sol...
Compiling .\contracts\mocks\StandardTokenMock.sol...
Compiling .\contracts\ownership\CanReclaimToken.sol...
Compiling .\contracts\ownership\Claimable.sol...
Compiling .\contracts\ownership\Contactable.sol...
Compiling .\contracts\ownership\DelayedClaimable.sol...
Compiling .\contracts\ownership\HasNoContracts.sol...
Compiling .\contracts\ownership\HasNoEther.sol...
Compiling .\contracts\ownership\HasNoTokens.sol...
Compiling .\contracts\ownership\NoOwner.sol...
Compiling .\contracts\ownership\Ownable.sol...
Compiling .\contracts\ownership\rbac\RBAC.sol...
Compiling .\contracts\ownership\rbac\Roles.sol...
Compiling .\contracts\payment\PullPayment.sol...
Compiling .\contracts\payment\SplitPayment.sol...
Compiling .\contracts\token\BasicToken.sol...
Compiling .\contracts\token\BurnableToken.sol...
Compiling .\contracts\token\CappedToken.sol...
Compiling .\contracts\token\DetailedERC20.sol...
Compiling .\contracts\token\ERC20.sol...
Compiling .\contracts\token\ERC20Basic.sol...
Compiling .\contracts\token\MintableToken.sol...
Compiling .\contracts\token\PausableToken.sol...
Compiling .\contracts\token\SafeERC20.sol...
Compiling .\contracts\token\StandardToken.sol...
Compiling .\contracts\token\TokenTimelock.sol...
Compiling .\contracts\token\TokenVesting.sol...
Compilation warnings encountered:
/C/Users/Tim Clancy/Desktop/testZep/zeppelin-solidity/contracts/crowdsale/FinalizableCrowdsale.sol:38:3: Warning: Function state mutability can be restricted to pure
function finalization() internal {
^
Spanning multiple lines.
,/C/Users/Tim Clancy/Desktop/testZep/zeppelin-solidity/contracts/ownership/HasNoTokens.sol:20:3: Warning: Function state mutability can be restricted to pure
function tokenFallback(address from_, uint256 value_, bytes data_) external {
^
Spanning multiple lines.
Contract: BasicToken
√ should return the correct totalSupply after construction (83ms)
√ should return correct balances after transfer (132ms)
√ should throw an error when trying to transfer more than balance (102ms)
√ should throw an error when trying to transfer to 0x0 (120ms)
Contract: Bounty
√ sets reward (444ms)
√ empties itself when destroyed (708ms)
Against secure contract
√ cannot claim reward (1498ms)
Against broken contract
√ claims reward (1470ms)
Contract: BurnableToken
√ owner should be able to burn tokens (95ms)
√ cannot burn more tokens than your balance
Contract: CanReclaimToken
√ should allow owner to reclaim tokens (103ms)
√ should allow only owner to reclaim tokens (46ms)
Contract: Capped
√ should start with the correct cap
√ should mint when amount is less than cap (94ms)
√ should fail to mint if the ammount exceeds the cap (141ms)
√ should fail to mint after cap is reached (144ms)
Contract: CappedCrowdsale
creating a valid crowdsale
√ should fail with zero cap (100ms)
accepting payments
√ should accept payments within cap (198ms)
√ should reject payments outside cap (101ms)
√ should reject payments that exceed cap
ending
√ should not be ended if under cap (140ms)
√ should not be ended if just under cap (98ms)
√ should be ended if cap reached (99ms)
Contract: Claimable
√ should have an owner
√ changes pendingOwner after transfer (71ms)
√ should prevent to claimOwnership from no pendingOwner (47ms)
√ should prevent non-owners from transfering (55ms)
after initiating a transfer
√ changes allow pending owner to claim ownership (68ms)
Contract: Contactable
√ should have an empty contact info
after setting the contact information
√ should return the setted contact information
Contract: DayLimit
√ should construct with the passed daily limit
√ should be able to spend if daily limit is not reached (137ms)
√ should prevent spending if daily limit is reached (86ms)
√ should allow spending if daily limit is reached and then set higher (252ms)
√ should allow spending if daily limit is reached and then amount spent is reset (235ms)
√ should allow spending if daily limit is reached and then the next has come (492ms)
Contract: Crowdsale
√ should be token owner
√ should be ended only after end (211ms)
accepting payments
√ should reject payments before start (78ms)
√ should accept payments after start (366ms)
√ should reject payments after end (296ms)
high-level purchase
√ should log purchase (115ms)
√ should increase totalSupply (100ms)
√ should assign tokens to sender (112ms)
√ should forward funds to wallet (436ms)
low-level purchase
√ should log purchase (90ms)
√ should increase totalSupply (102ms)
√ should assign tokens to beneficiary (96ms)
√ should forward funds to wallet (410ms)
Contract: DelayedClaimable
√ can set claim blocks (199ms)
√ changes pendingOwner after transfer successful (222ms)
√ changes pendingOwner after transfer fails (210ms)
√ set end and start invalid values fail (101ms)
Contract: Destructible
√ should send balance to owner after destruction (580ms)
√ should send balance to recepient after destruction (659ms)
Contract: HasNoContracts
√ should allow owner to reclaim contracts (61ms)
√ should allow only owner to reclaim contracts
Contract: ECRecovery
√ recover v0 (83ms)
√ recover v1 (66ms)
√ recover using web3.eth.sign() (259ms)
√ recover using web3.eth.sign() should return wrong signer (315ms)
√ recover should fail when a wrong hash is sent (235ms)
Contract: FinalizableCrowdsale
√ cannot be finalized before ending
√ cannot be finalized by third party after ending (217ms)
√ can be finalized by owner after ending (300ms)
√ cannot be finalized twice (317ms)
√ logs finalized (217ms)
Contract: DetailedERC20
√ has a name
√ has a symbol
√ has an amount of decimals
Contract: HasNoEther
√ should be constructorable (67ms)
√ should not accept ether in constructor (40ms)
√ should not accept ether (87ms)
√ should allow owner to reclaim ether (1116ms)
√ should allow only owner to reclaim ether (376ms)
Contract: LimitBalance
√ should expose limit
√ should allow sending below limit (244ms)
√ shouldnt allow sending above limit (42ms)
√ should allow multiple sends below limit (510ms)
√ shouldnt allow multiple sends above limit (249ms)
Contract: HasNoTokens
√ should not accept ERC23 tokens (51ms)
√ should allow owner to reclaim tokens (95ms)
√ should allow only owner to reclaim tokens
Contract: MerkleProof
verifyProof
√ should return true for a valid Merkle proof
√ should return false for an invalid Merkle proof
√ should return false for a Merkle proof of invalid length
Contract: Pausable
√ can perform normal process in non-pause (133ms)
√ can not perform normal process in pause (179ms)
√ can not take drastic measure in non-pause (107ms)
√ can take a drastic measure in a pause (162ms)
√ should resume allowing normal process after pause is over (185ms)
√ should prevent drastic measure after pause is over (210ms)
Contract: Mintable
√ should start with a totalSupply of 0
√ should return mintingFinished false after construction
√ should mint a given amount of tokens to a given address (84ms)
√ should fail to mint after call to finishMinting (79ms)
Contract: Ownable
√ should have an owner
√ changes owner after transfer (55ms)
√ should prevent non-owners from transfering (43ms)
√ should guard ownership against stuck state (46ms)
Contract: PausableToken
√ should return paused false after construction
√ should return paused true after pause (66ms)
√ should return paused false after pause and unpause (91ms)
√ should be able to transfer if transfers are unpaused (71ms)
√ should be able to transfer after transfers are paused and unpaused (169ms)
√ should throw an error trying to transfer while transactions are paused (90ms)
√ should throw an error trying to transfer from another account while transactions are paused (77ms)
Contract: ReentrancyGuard
√ should not allow remote callback (141ms)
√ should not allow local recursion (39ms)
√ should not allow indirect local recursion (51ms)
Contract: RefundableCrowdsale
√ should deny refunds before end (231ms)
√ should deny refunds after end if goal was reached (475ms)
√ should allow refunds after end if goal was not reached (892ms)
√ should forward funds to wallet after end if goal was reached (814ms)
creating a valid crowdsale
√ should fail with zero goal (91ms)
Contract: SafeERC20
√ should throw on failed transfer
√ should throw on failed transferFrom
√ should throw on failed approve
√ should not throw on succeeding transfer
√ should not throw on succeeding transferFrom (41ms)
√ should not throw on succeeding approve (38ms)
Contract: RBAC
in normal conditions
√ allows admin to call #onlyAdminsCanDoThis
√ allows admin to call #onlyAdvisorsCanDoThis
√ allows advisors to call #onlyAdvisorsCanDoThis
√ allows admin to call #eitherAdminOrAdvisorCanDoThis
√ allows advisors to call #eitherAdminOrAdvisorCanDoThis
√ does not allow admins to call #nobodyCanDoThis
√ does not allow advisors to call #nobodyCanDoThis
√ does not allow anyone to call #nobodyCanDoThis
√ allows an admin to remove an advisor's role (68ms)
√ allows admins to #adminRemoveRole (51ms)
√ announces a RoleAdded event on addRole
√ announces a RoleRemoved event on removeRole
in adversarial conditions
√ does not allow an advisor to remove another advisor
√ does not allow "anyone" to remove an advisor
Contract: RefundVault
1) "before all" hook: prepare suite
Contract: PullPayment
2) "before each" hook for "should accept contributions"
135 passing (46s)
2 failing
1) Contract: RefundVault "before all" hook: prepare suite:
Uncaught Error: Error: LevelUpArrayAdapter named 'blockLogs' index out of range: index 83; length: 83
at C:\Users\Tim Clancy\AppData\Roaming\npm\node_modules\ganache-cli\build\cli.node.js:85357:23
at C:\Users\Tim Clancy\AppData\Roaming\npm\node_modules\ganache-cli\build\cli.node.js:85331:5
at C:\Users\Tim Clancy\AppData\Roaming\npm\node_modules\ganache-cli\build\cli.node.js:85777:12
at C:\Users\Tim Clancy\AppData\Roaming\npm\node_modules\ganache-cli\build\cli.node.js:85542:19
at C:\Users\Tim Clancy\AppData\Roaming\npm\node_modules\ganache-cli\build\cli.node.js:87681:7
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)
at Object.InvalidResponse (C:\Users\Tim Clancy\AppData\Roaming\npm\node_modules\truffle\build\cli.bundled.js:41484:16)
at C:\Users\Tim Clancy\AppData\Roaming\npm\node_modules\truffle\build\cli.bundled.js:329530:36
at C:\Users\Tim Clancy\AppData\Roaming\npm\node_modules\truffle\build\cli.bundled.js:325200:9
at XMLHttpRequest.request.onreadystatechange (C:\Users\Tim Clancy\AppData\Roaming\npm\node_modules\truffle\build\cli.bundled.js:328229:7)
at XMLHttpRequestEventTarget.dispatchEvent (C:\Users\Tim Clancy\AppData\Roaming\npm\node_modules\truffle\build\cli.bundled.js:176415:18)
at XMLHttpRequest._setReadyState (C:\Users\Tim Clancy\AppData\Roaming\npm\node_modules\truffle\build\cli.bundled.js:176705:12)
at XMLHttpRequest._onHttpResponseEnd (C:\Users\Tim Clancy\AppData\Roaming\npm\node_modules\truffle\build\cli.bundled.js:176860:12)
at IncomingMessage.<anonymous> (C:\Users\Tim Clancy\AppData\Roaming\npm\node_modules\truffle\build\cli.bundled.js:176820:24)
2) Contract: PullPayment "before each" hook for "should accept contributions":
Error: NotFoundError: Key not found in database
at C:\Users\Tim Clancy\AppData\Roaming\npm\node_modules\ganache-cli\build\cli.node.js:85776:18
at C:\Users\Tim Clancy\AppData\Roaming\npm\node_modules\ganache-cli\build\cli.node.js:85541:19
at C:\Users\Tim Clancy\AppData\Roaming\npm\node_modules\ganache-cli\build\cli.node.js:87686:21
at ReadFileContext.callback (C:\Users\Tim Clancy\AppData\Roaming\npm\node_modules\ganache-cli\build\cli.node.js:87583:14)
at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:420:13)
at Object.InvalidResponse (C:\Users\Tim Clancy\AppData\Roaming\npm\node_modules\truffle\build\cli.bundled.js:41484:16)
at C:\Users\Tim Clancy\AppData\Roaming\npm\node_modules\truffle\build\cli.bundled.js:329530:36
at C:\Users\Tim Clancy\AppData\Roaming\npm\node_modules\truffle\build\cli.bundled.js:325200:9
at XMLHttpRequest.request.onreadystatechange (C:\Users\Tim Clancy\AppData\Roaming\npm\node_modules\truffle\build\cli.bundled.js:328229:7)
at XMLHttpRequestEventTarget.dispatchEvent (C:\Users\Tim Clancy\AppData\Roaming\npm\node_modules\truffle\build\cli.bundled.js:176415:18)
at XMLHttpRequest._setReadyState (C:\Users\Tim Clancy\AppData\Roaming\npm\node_modules\truffle\build\cli.bundled.js:176705:12)
at XMLHttpRequest._onHttpResponseEnd (C:\Users\Tim Clancy\AppData\Roaming\npm\node_modules\truffle\build\cli.bundled.js:176860:12)
at IncomingMessage.<anonymous> (C:\Users\Tim Clancy\AppData\Roaming\npm\node_modules\truffle\build\cli.bundled.js:176820:24)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment