-
Notifications
You must be signed in to change notification settings - Fork 695
--blockTime not working #517
Comments
This is already fixed in ganache-core develop branch (trufflesuite/ganache#101), but they need to make a new release. |
Same issue, waiting for new release! |
Hey everyone! A release was snapped a couple weeks ago, you can now use v6.1.3 I'm going to go ahead and close this, but please open it up again if the issue persists (or open a new issue if it's slightly different). Thanks! |
Didn't work for me, resorted to ganache-ui which works flawlessly. Tried |
@SamGos what version of ganache-cli are your using (either This works for me on |
OS: MAC OS X Sierra v10.13.12
&
Works fine on UI but as you can imagine it is memory resourceful with the client side interface; |
Forgive me it seem's my observations were wrong, I was actually on the wrong port to truffle 😞 Forgive my silliness and have a nice day 👍 |
Expected Behavior
ganache-cli --blockTime 15
should wait 15 seconds before mining each block.Current Behavior
ganache-cli --blockTime 15
behaves exactly likeganache-cli
Steps to Reproduce
clone my repository at https://github.com/emi-silva/lease.git and reset to commit 287b481de1df7b0ca5e8033990d434514b571754
run ganache-cli on port 8875 without the --blockTime option
truffle test test/delay.test.js --network dev
take a look at the output log. The state variable is updated immediately.
run ganache-cli on port 8875 with the --blockTime option set to 15 (or to 15000000 for that matter)
truffle test test/delay.test.js --network dev
The results are the same.
run ganache UI on port 8875, uncheck the automine option, set the block time to 15
truffle test test/delay.test.js --network dev
take a look at the output log. The state variable is not updated immediately.
run Rinkeby: geth --networkid 4 --rpcport 8555 --rpc
truffle test test/delay.test.js --network rinkeby
The state variable is again not updated immediately.
Context
This issue is not letting me reproduce an actual production scenario for my unit tests, which is a potential source of bugs in my contract. If it is not solved, I cannot continue using ganache-cli.
Your Environment
The text was updated successfully, but these errors were encountered: