-
Notifications
You must be signed in to change notification settings - Fork 660
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(testloop): set epoch length in testloop (#12664)
Some resharding tests failed if an RPC node was used to submit transactions. It worked without RPC because `client0` was used by default, and it turned out this client was a chunk validator for the child shard after resharding. It did not work with RPC (or any client other than `client0`) because a transaction near epoch boundary was not forwarded to `client0`. It was not forwarded because `config.epoch_length` was not properly set in testloop. It has default value `10`, while resharding tests use `6`. That caused `get_next_epoch_id_if_at_boundary` to return different result that expected. In consequence, transaction was not sent to `client0`, which was a chunk producer for next epoch.
- Loading branch information
Showing
4 changed files
with
8 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters