Replies: 4 comments 13 replies
-
Hey @mmuaaz please format your code appropriately with three backticks. |
Beta Was this translation helpful? Give feedback.
-
@mmuaaz : Your unit tests are are all passing perfectly, I'm using your Look at that : |
Beta Was this translation helpful? Give feedback.
-
I cannot seem to find any issues whatsoever. Please verify there are no whitespaces in your .env file and also verify if the credentials are correct (also verify whether you have sufficient funds in your subscriptionId i.e. LINK and ETH). If the above does not work, try re-installing your dependencies after cleaning artifacts and cache. |
Beta Was this translation helpful? Give feedback.
-
@abossofmyself yeah your PR merged, it added another package file with name "package-lock.json", my package.json is still there, so now I delete my pacakge.json file and rename yours to use as the default one? will it be enough? I mean doesn't installing take more than just adding them to package.json? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am getting error
Error: Timeout of 5000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves
I have tried almost everything which are mentioned in other people's issues, but not getting passed this, can anybody help? I have run the keeprs troubleshoot as well, I think with the mocks I dont need a subscriptionId as we have configured that part of subscriptionId in the deploy "mocks" script, I have ran other test successfully
it("reverts if checkup is false", async () => { await expect(raffle.performUpkeep("0x")).to.be.revertedWith( "Raffle__UpkeepNotNeeded" )
This test ran successfully which means checkUpkeep is working fine, also I modified this test to check if its working as it should be by modifying the code:
`` it("reverts if checkup is false", async () => {
await raffle.enterRaffle({ value: raffleEntranceFee })
await network.provider.send("evm_increaseTime", [interval.toNumber() + 1])
it failed, I think it should have, also performUpKeep test is also passing, all the other test are passing so I dont know what am I doing wrong
Beta Was this translation helpful? Give feedback.
All reactions