Open fubuloubu opened 4 years ago
Are you able to pin-point which test call is failing? Usually this error occurs when you accidentally pass in an ethereum address where a number is expected.
p.s. I'm very sorry we've made you sad :heart: :slightly_smiling_face:
Are you able to pin-point which test call is failing? Usually this error occurs when you accidentally pass in an ethereum address where a number is expected.
Not really, no but I will check if this is the case. I doubt it, because usually eth-abi Python library is very good about detecting mismatching w/ call types, but you never know.
So, the current iteration of tests/integration/test_calculation.py
is actually mining a ton of blocks (2.3m), this could be what causes it to fail. I actually need to update it to no longer be mining all those blocks due to a change we made to use timestamps instead.
I figured it out! I was setting the timestamp to an invalid value using evm_increaseTime
. I was setting it to a number w/ 188 bits! This causes ganache to throw and fail.
Expected Behavior
Test cases pass!
Current Behavior
During test execution, ganache throws and error and spoils the test run:
Possible Solution
Add actual integers to JS
Steps to Reproduce (for bugs)
brownie test test/integration
Context
It makes me sad
Your Environment