quint
April 18, 2022, 3:21pm
1
Is there are way to lower/disable the blockTime
when running the emulator
/replica
locally with dfx
?
The amount of time my test suite takes to complete just grows by minutes every time I add new features, because every update call takes 2000+
ms.
3 Likes
There used to be a --no-artificial-delay
flag but I’m not sure if that got removed.
I’m not sure if this works with --emulator, but just in case, you might try:
A new --no-artificial-delay option enables you to reduce the time it takes for the local Internet Computer to start.
This change adds the --no-artificial-delay flag to dfx start and dfx replica commands. By default, the local Internet Computer replica that is installed with the DFINITY Canister SDK has an artificial consensus delay to simulate the delay users might see in a networked environment. With this new flag, …
1 Like
Seb
April 28, 2022, 12:01pm
3
Would it be possible to get this flag back ?
The only reason invoked there is that it was confusing but the advantages of reducing test time and asset uploading locally far outweigh that.
.
committed 04:04PM - 12 Oct 21 UTC
The `--no-artificial-delay` option not being the default has been causing a lot … of confusion. Now that we have measured in production and already applied a default of 600ms to most subnets deployed out there, we should just set the same default for dfx and remove this option.
4 Likes
lastmjs
December 12, 2022, 5:51pm
4
Could we please get this flag back? We’re about to start some pretty intense testing as well, and I would love to get rid of that delay for testing.
2 Likes
Cross-posting for visibility.
Related PR:
It seems that over a year ago the flag was removed but the net result is that the default changed to 600ms vs 500ms when using the flag.
The comment says the 600ms is the value used in the production network.
3 Likes
I’ll ping the team and see if anyone can find the time as we’re really busy with SNS. But feel free to ping me again if nothing happened every 2-4 weeks or so.
Other thread on the same topic: Bring back --no-artificial-delay
1 Like