question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when running tests

See original GitHub issue

As reported by @3esmit, test execution in 3.2 is failing due to

PS C:\Users\schim\Documents\GitHub\ens-usernames> embark test .\test\usernameregistrar.spec.js

Compiling contracts

ens/ENS.sol:18:3: Warning: Functions in interfaces should be declared external.

  function setSubnodeOwner(bytes32 node, bytes32 label, address owner) public;

  ^--------------------------------------------------------------------------^

ens/ENS.sol:19:3: Warning: Functions in interfaces should be declared external.

  function setResolver(bytes32 node, address resolver) public;

  ^----------------------------------------------------------^

ens/ENS.sol:20:3: Warning: Functions in interfaces should be declared external.

  function setOwner(bytes32 node, address owner) public;

  ^----------------------------------------------------^

ens/ENS.sol:21:3: Warning: Functions in interfaces should be declared external.

  function setTTL(bytes32 node, uint64 ttl) public;

  ^-----------------------------------------------^

ens/ENS.sol:22:3: Warning: Functions in interfaces should be declared external.

  function owner(bytes32 node) public view returns (address);

  ^---------------------------------------------------------^

ens/ENS.sol:23:3: Warning: Functions in interfaces should be declared external.

  function resolver(bytes32 node) public view returns (address);

  ^------------------------------------------------------------^

ens/ENS.sol:24:3: Warning: Functions in interfaces should be declared external.

  function ttl(bytes32 node) public view returns (uint64);

  ^------------------------------------------------------^

ens/ENS.sol:18:3: Warning: Functions in interfaces should be declared external.

  function setSubnodeOwner(bytes32 node, bytes32 label, address owner) public;

  ^--------------------------------------------------------------------------^

ens/ENS.sol:19:3: Warning: Functions in interfaces should be declared external.

  function setResolver(bytes32 node, address resolver) public;

  ^----------------------------------------------------------^

ens/ENS.sol:20:3: Warning: Functions in interfaces should be declared external.

  function setOwner(bytes32 node, address owner) public;

  ^----------------------------------------------------^

ens/ENS.sol:21:3: Warning: Functions in interfaces should be declared external.

  function setTTL(bytes32 node, uint64 ttl) public;

  ^-----------------------------------------------^

ens/ENS.sol:22:3: Warning: Functions in interfaces should be declared external.

  function owner(bytes32 node) public view returns (address);

  ^---------------------------------------------------------^

ens/ENS.sol:23:3: Warning: Functions in interfaces should be declared external.

  function resolver(bytes32 node) public view returns (address);

  ^------------------------------------------------------------^

ens/ENS.sol:24:3: Warning: Functions in interfaces should be declared external.

  function ttl(bytes32 node) public view returns (uint64);

  ^------------------------------------------------------^

  1) "before all" hook: Wait for deploy - [3819881 gas]

  0 passing (12s) - [Total: 3819881 gas]

  1 failing

  1) "before all" hook: Wait for deploy:

     Uncaught Error: Callback was already called.

      at C:\Users\schim\AppData\Roaming\npm\node_modules\embark\node_modules\async\dist\async.js:966:32

      at self.events.request (C:\Users\schim\AppData\Roaming\npm\node_modules\embark\lib\modules\deployment\contract_deployer.js:233:20)

      at Object._fireError (C:\Users\schim\AppData\Roaming\npm\node_modules\embark\node_modules\web3-utils\src\index.js:60:9)

      at sendTxCallback (C:\Users\schim\AppData\Roaming\npm\node_modules\embark\node_modules\web3-core-method\src\index.js:491:30)

      at C:\Users\schim\AppData\Roaming\npm\node_modules\embark\node_modules\web3-core-requestmanager\src\index.js:136:20

      at Object.c [as callback] (C:\Users\schim\AppData\Roaming\npm\node_modules\embark\node_modules\ganache-cli\build\webpack:\ganache\node_modules\ganache-core\lib\provider.js:103:1)

      at e.engine.sendAsync (C:\Users\schim\AppData\Roaming\npm\node_modules\embark\node_modules\ganache-cli\build\webpack:\ganache\node_modules\ganache-core\lib\provider.js:150:1)

      at C:\Users\schim\AppData\Roaming\npm\node_modules\embark\node_modules\ganache-cli\build\webpack:\ganache\node_modules\ganache-core\node_modules\web3-provider-engine\index.js:150:1

      at C:\Users\schim\AppData\Roaming\npm\node_modules\embark\node_modules\ganache-cli\build\webpack:\ganache\node_modules\ganache-core\node_modules\async\internal\once.js:12:1

      at p (C:\Users\schim\AppData\Roaming\npm\node_modules\embark\node_modules\ganache-cli\build\webpack:\ganache\node_modules\ganache-core\node_modules\async\internal\eachOfLimit.js:61:1)

      at C:\Users\schim\AppData\Roaming\npm\node_modules\embark\node_modules\ganache-cli\build\webpack:\ganache\node_modules\ganache-core\node_modules\async\internal\eachOfLimit.js:71:1

      at a.default (C:\Users\schim\AppData\Roaming\npm\node_modules\embark\node_modules\ganache-cli\build\webpack:\ganache\node_modules\ganache-core\node_modules\async\eachLimit.js:43:1)

      at C:\Users\schim\AppData\Roaming\npm\node_modules\embark\node_modules\ganache-cli\build\webpack:\ganache\node_modules\ganache-core\node_modules\async\internal\doLimit.js:9:1

      at f (C:\Users\schim\AppData\Roaming\npm\node_modules\embark\node_modules\ganache-cli\build\webpack:\ganache\node_modules\ganache-core\node_modules\web3-provider-engine\index.js:127:1)

      at a (C:\Users\schim\AppData\Roaming\npm\node_modules\embark\node_modules\ganache-cli\build\webpack:\ganache\node_modules\ganache-core\node_modules\web3-provider-engine\index.js:118:1)

      at s._handleAsync (C:\Users\schim\AppData\Roaming\npm\node_modules\embark\node_modules\ganache-cli\build\webpack:\ganache\node_modules\ganache-core\node_modules\web3-provider-engine\index.js:103:1)

      at Timeout._onTimeout (C:\Users\schim\AppData\Roaming\npm\node_modules\embark\node_modules\ganache-cli\build\webpack:\ganache\node_modules\ganache-core\node_modules\web3-provider-engine\index.js:87:1)

 > Total number of failures: 1

This is working with 3.1.10

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

3reactions
0x-r4bbitcommented, Oct 8, 2018

I can confirm that replacing 0x0 with a full 0 address (0x0000000000000000000000000000000000000000) fixes that the error described above is thrown.

Waiting for @3esmit to verify this so we can close this issue.

2reactions
alaibecommented, Oct 3, 2018

This error: { Error: invalid address (arg="_parentRegistry", coderType="address", value="0x0") seems to be due to the new web3 ABI coder that has been shipped into the beta 36.

We should try to replace the 0x0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read property 'testsuites' of null · Issue #14107 ...
There is an error when running the tests. Command 'Python: Run All Tests' resulted in an error (Cannot read property 'testsuites' of null)...
Read more >
Error running unit tests on test projects - Visual Studio Feedback
I'm running on VisualStudio.16.Preview/16.2.0-pre.1.0+28917.182. The project has the following dependencies (added through Nuget): <PackageReference ...
Read more >
No tests found for given includes Error, when running ...
Go to Preferences -> Build, Execution, Deployment -> Gradle -> change "Run tests using" to "IntelliJ IDEA". Run your test. Go again to...
Read more >
Error when running tests.
Here is the error when trying to run a robot test: C:\Users\lakhotia\provisioned-apps\java\bin\java -Xms1G -Xmx4g -XX:MaxPermSize=1G -Didea. ...
Read more >
AuthInfo error when running apex tests in scratch org
One of the two classes is a test class. When I try to run the test by clicking the Run all tests in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found