Skip to content

AssertionError: expected '1' to equal '30' + expected - actual #196

Discussion options

You must be logged in to vote
  1. Please remember to format your questions like we show here: https://www.youtube.com/watch?v=gyMwXuJrbJQ&t=19842s
  2. Don't use assert ==. The test are passing because that doesn't mean anything.
  3. This means that const interval = await raffle.getInterval() is returning 1, and your config correctly has 30. Go check how you're deploying this contract, you're likely importing the wrong variable. What does your helper-hardhat-config.js & your deploy script look like?

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by mubashirhussainkhadim
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants