You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This, however, does not work when the contract is deployed on a live network (npx hardhat test --network mumbai. It appears to forever hangs when the statement previous to the expect statement finishes running.
Minimal reproduction steps
Add config for a live network in hardhat.config.js, deploy a smart contract on the live network with any public variable and use an expect statement similar to the following in a file in the test folder:
Hi @lyh970817, the only reason that statement could hang is if the goodbye.airnode() is hanging. That might be related to the node provider you are connecting to or something else, but it's unlikely to be related to Hardhat. Notice that you are using a plain .to.equal comparison, so this doesn't even involve our plugins.
Happy to re-open if you can provide specific steps that show that something is not working on our side.
Version of Hardhat
2.13.0
What happened?
I can use the expect statement in the following manner when testing with hardhat local network:
This, however, does not work when the contract is deployed on a live network (
npx hardhat test --network mumbai
. It appears to forever hangs when the statement previous to theexpect
statement finishes running.Minimal reproduction steps
Add config for a live network in
hardhat.config.js
, deploy a smart contract on the live network with any public variable and use anexpect
statement similar to the following in a file in thetest
folder:Search terms
test, chai, expect
The text was updated successfully, but these errors were encountered: