Skip to content

test(factory): refactor genesis doc generation#573

Merged
lklimek merged 8 commits intov0.10-devfrom
refactor-tests-genesis
Feb 10, 2023
Merged

test(factory): refactor genesis doc generation#573
lklimek merged 8 commits intov0.10-devfrom
refactor-tests-genesis

Conversation

@lklimek
Copy link
Collaborator

@lklimek lklimek commented Feb 7, 2023

Issue being fixed or feature implemented

Genesis doc generation is a bit too complex, for example, factory.RandGenesisDoc() requires unnecessary arguments and duplicates code.

What was done?

  • simplified RandGenesisDoc
  • renamed TestGenesisDoc to MinimalGenesisDoc
  • refactored unit tests to adhere to new naming

How Has This Been Tested?

Github Actions

Breaking Changes

none

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

@lklimek lklimek force-pushed the refactor-tests-genesis branch from 259cdf2 to c73871e Compare February 7, 2023 13:40
@lklimek lklimek marked this pull request as ready for review February 7, 2023 15:23
@lklimek lklimek force-pushed the refactor-tests-genesis branch from a16ee79 to c9fff9a Compare February 8, 2023 09:28
shotonoff
shotonoff previously approved these changes Feb 10, 2023
Copy link
Collaborator

@shotonoff shotonoff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left a coupe of minor questions

Copy link
Collaborator

@shotonoff shotonoff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lklimek lklimek merged commit 76ab05b into v0.10-dev Feb 10, 2023
@lklimek lklimek deleted the refactor-tests-genesis branch February 10, 2023 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants