Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tests] Reduce the re-generation of genesis in tests #2099

Merged
merged 1 commit into from
May 21, 2022

Conversation

gdanezis
Copy link
Collaborator

In many places we keep re-reading, re-compiling and re-verifying genesis when we make authorities. In this PR I try to generate genesis once in each test and re-use it as many times as possible. This reduced the running time of sui_core tests from 300sec to 179sec on my feeble linux box.

@gdanezis gdanezis requested a review from bmwill May 20, 2022 18:16
@gdanezis gdanezis force-pushed the rationalize-genesis-testing branch from 36ae6c2 to 039fb36 Compare May 21, 2022 09:46
@gdanezis gdanezis merged commit 22e1535 into main May 21, 2022
@gdanezis gdanezis deleted the rationalize-genesis-testing branch May 21, 2022 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants