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

Context manager for delay rules in stasher #566

Merged
merged 6 commits into from
Mar 13, 2018

Conversation

skhoroshavin
Copy link
Contributor

@skhoroshavin skhoroshavin commented Mar 12, 2018

Changes:

  • implemented delay_rules context manager to simplify delay rules management in tests
  • fixed some internals of Stasher and documented possible corner cases
  • added default (large) timeouts to most of delay rule functions
  • refactored one of existing tests to show example of intended usage of new delay_rules context manager

Overall this new context manager should help write less error prone and more deterministic integration tests.

@ashcherbakov ashcherbakov merged commit 5134319 into hyperledger:master Mar 13, 2018
@skhoroshavin skhoroshavin deleted the stasher-delay-context branch March 14, 2018 11:21
lampkin-diet pushed a commit to lampkin-diet/indy-plenum that referenced this pull request Apr 9, 2018
* Refactored test_delay in test_stasher

Signed-off-by: Sergey Khoroshavin <[email protected]>

* Initial broken implementation of stasher delay_rules context

Signed-off-by: Sergey Khoroshavin <[email protected]>

* Possibly breaking changes in Stasher to fix context manager tests

Signed-off-by: Sergey Khoroshavin <[email protected]>

* Documented changes in stasher

Signed-off-by: Sergey Khoroshavin <[email protected]>

* Improved delay_rules implementation

Signed-off-by: Sergey Khoroshavin <[email protected]>

* Example use of new delay_rules context manager + misc cleanups

Signed-off-by: Sergey Khoroshavin <[email protected]>
lampkin-diet pushed a commit to lampkin-diet/indy-plenum that referenced this pull request Apr 10, 2018
* Refactored test_delay in test_stasher

Signed-off-by: Sergey Khoroshavin <[email protected]>

* Initial broken implementation of stasher delay_rules context

Signed-off-by: Sergey Khoroshavin <[email protected]>

* Possibly breaking changes in Stasher to fix context manager tests

Signed-off-by: Sergey Khoroshavin <[email protected]>

* Documented changes in stasher

Signed-off-by: Sergey Khoroshavin <[email protected]>

* Improved delay_rules implementation

Signed-off-by: Sergey Khoroshavin <[email protected]>

* Example use of new delay_rules context manager + misc cleanups

Signed-off-by: Sergey Khoroshavin <[email protected]>
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