Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

[Testing] Make test generated keys deterministic w/in block generator #1657

Merged
merged 2 commits into from
Jul 8, 2019

Conversation

shemnon
Copy link
Contributor

@shemnon shemnon commented Jul 8, 2019

PR description

BlockDataGenerator (a testing util) uses the default key generation code, which
is set to a SecureRandom by default. However this creates non-deterministic
testing with the block data.

This changes the generator for test data to use
a deterministic set of key pairs.

Copy link
Contributor

@AbdelStark AbdelStark left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@shemnon shemnon merged commit 0507a45 into PegaSysEng:master Jul 8, 2019
@shemnon shemnon deleted the deterministic_test_keys branch July 8, 2019 19:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants