Closed Ugwumsi closed 1 year ago
This is my terminal output when I try to run the staging test on the goerli network
macbookpro2018@macbooks-MacBook-Pro-2 hardhat-lottery % yarn hardhat test --network goerli
yarn run v1.22.19
$ /Users/macbookpro2018/Documents/blockchain/hh-fcc/hardhat-lottery/node_modules/.bin/hardhat test --network goerli
Raffle Unit Tests
Fulfill Random Words
started...
The first Phase
1) Works with Live Chainlink Keepers and chainlink VRF, we get a random Winner
0 passing (10m)
1 failing
1) Raffle Unit Tests
Fulfill Random Words
Works with Live Chainlink Keepers and chainlink VRF, we get a random Winner:
Error: Timeout of 500000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/Users/macbookpro2018/Documents/blockchain/hh-fcc/hardhat-lottery/test/staging/Raffle.staging.test.js)
at listOnTimeout (node:internal/timers:564:17)
at processTimers (node:internal/timers:507:7)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
I have no idea what is going on. I will appreciate any assistance. Thank you!!
Can you:
Thanks!
Hello, I have been stuck on this for days now; I am trying to run the staging test but it always times out. Please refer to the code below. I tried using 'console.log()' to try and locate the part of the code that was taking too long and it seems to be the enter raffle part after the listener has been set up