Skip to content

truffle test error #3

Open
Open
@wudongyang

Description

$ truffle test
Using network 'development'.



  Contract: HPBToken

----------------------------------------------------------------------------------------------------

hbp: 0xafd027f473d4858e62aacc5994aa469a57a82a69
    1) should not be able to start ico sale when not called by owner.
    > No events were emitted

----------------------------------------------------------------------------------------------------

target: 0x0000000000000000000000000000000000000000
    2) should not allow create tokens before it starts
    > No events were emitted

----------------------------------------------------------------------------------------------------

    3) should be able to start ico sale when called by owner.
    > No events were emitted

----------------------------------------------------------------------------------------------------

    4) should be able to create HPB tokens after sale starts
    > No events were emitted


  0 passing (677ms)
  4 failing

  1) Contract: HPBToken should not be able to start ico sale when not called by owner.:
     Error: VM Exception while processing transaction: revert
      at Object.InvalidResponse (/Users/wdy/.nvm/versions/node/v9.4.0/lib/node_modules/truffle/build/cli.bundled.js:41483:16)
      at RequestManager.send (/Users/wdy/.nvm/versions/node/v9.4.0/lib/node_modules/truffle/build/cli.bundled.js:330328:22)
      at Eth.send [as sendTransaction] (/Users/wdy/.nvm/versions/node/v9.4.0/lib/node_modules/truffle/build/cli.bundled.js:37993:58)
      at test/TestHPBToken.js:14:16
      at <anonymous>
      at process._tickCallback (internal/process/next_tick.js:160:7)

  2) Contract: HPBToken should not allow create tokens before it starts:
     Error: VM Exception while processing transaction: revert
      at Object.InvalidResponse (/Users/wdy/.nvm/versions/node/v9.4.0/lib/node_modules/truffle/build/cli.bundled.js:41483:16)
      at RequestManager.send (/Users/wdy/.nvm/versions/node/v9.4.0/lib/node_modules/truffle/build/cli.bundled.js:330328:22)
      at Eth.send [as sendTransaction] (/Users/wdy/.nvm/versions/node/v9.4.0/lib/node_modules/truffle/build/cli.bundled.js:37993:58)
      at test/TestHPBToken.js:47:23
      at <anonymous>
      at process._tickCallback (internal/process/next_tick.js:160:7)

  3) Contract: HPBToken should be able to start ico sale when called by owner.:
     Error: Error: could not unlock signer account
    at StateManager.queueTransaction (/Users/wdy/.nvm/versions/node/v9.4.0/lib/node_modules/ethereumjs-testrpc/build/cli.node.js:90530:21)
    at GethApiDouble.eth_sendTransaction (/Users/wdy/.nvm/versions/node/v9.4.0/lib/node_modules/ethereumjs-testrpc/build/cli.node.js:90071:14)
    at GethApiDouble.handleRequest (/Users/wdy/.nvm/versions/node/v9.4.0/lib/node_modules/ethereumjs-testrpc/build/cli.node.js:89870:10)
    at next (/Users/wdy/.nvm/versions/node/v9.4.0/lib/node_modules/ethereumjs-testrpc/build/cli.node.js:59378:18)
    at GethDefaults.handleRequest (/Users/wdy/.nvm/versions/node/v9.4.0/lib/node_modules/ethereumjs-testrpc/build/cli.node.js:89767:12)
    at next (/Users/wdy/.nvm/versions/node/v9.4.0/lib/node_modules/ethereumjs-testrpc/build/cli.node.js:59378:18)
    at FilterSubprovider.handleRequest (/Users/wdy/.nvm/versions/node/v9.4.0/lib/node_modules/ethereumjs-testrpc/build/cli.node.js:65832:7)
    at next (/Users/wdy/.nvm/versions/node/v9.4.0/lib/node_modules/ethereumjs-testrpc/build/cli.node.js:59378:18)
    at DelayedBlockFilter.handleRequest (/Users/wdy/.nvm/versions/node/v9.4.0/lib/node_modules/ethereumjs-testrpc/build/cli.node.js:89595:3)
    at next (/Users/wdy/.nvm/versions/node/v9.4.0/lib/node_modules/ethereumjs-testrpc/build/cli.node.js:59378:18)
      at Object.InvalidResponse (/Users/wdy/.nvm/versions/node/v9.4.0/lib/node_modules/truffle/build/cli.bundled.js:41483:16)
      at /Users/wdy/.nvm/versions/node/v9.4.0/lib/node_modules/truffle/build/cli.bundled.js:330353:36
      at /Users/wdy/.nvm/versions/node/v9.4.0/lib/node_modules/truffle/build/cli.bundled.js:326008:9
      at XMLHttpRequest.request.onreadystatechange (/Users/wdy/.nvm/versions/node/v9.4.0/lib/node_modules/truffle/build/cli.bundled.js:329052:7)
      at XMLHttpRequestEventTarget.dispatchEvent (/Users/wdy/.nvm/versions/node/v9.4.0/lib/node_modules/truffle/build/cli.bundled.js:176427:18)
      at XMLHttpRequest._setReadyState (/Users/wdy/.nvm/versions/node/v9.4.0/lib/node_modules/truffle/build/cli.bundled.js:176717:12)
      at XMLHttpRequest._onHttpResponseEnd (/Users/wdy/.nvm/versions/node/v9.4.0/lib/node_modules/truffle/build/cli.bundled.js:176872:12)
      at IncomingMessage.<anonymous> (/Users/wdy/.nvm/versions/node/v9.4.0/lib/node_modules/truffle/build/cli.bundled.js:176832:24)
      at endReadableNT (_stream_readable.js:1101:12)

  4) Contract: HPBToken should be able to create HPB tokens after sale starts:
     Error: VM Exception while processing transaction: revert
      at Object.InvalidResponse (/Users/wdy/.nvm/versions/node/v9.4.0/lib/node_modules/truffle/build/cli.bundled.js:41483:16)
      at RequestManager.send (/Users/wdy/.nvm/versions/node/v9.4.0/lib/node_modules/truffle/build/cli.bundled.js:330328:22)
      at Eth.send [as sendTransaction] (/Users/wdy/.nvm/versions/node/v9.4.0/lib/node_modules/truffle/build/cli.bundled.js:37993:58)
      at test/TestHPBToken.js:94:23
      at <anonymous>
      at process._tickCallback (internal/process/next_tick.js:160:7)


Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions