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

Enable STAKE_POOLS_LIST tests to run in isolation. #1899

Merged
merged 3 commits into from
Jul 13, 2020

Conversation

jonathanknowles
Copy link
Contributor

@jonathanknowles jonathanknowles commented Jul 13, 2020

Issue Number

#1819

Overview

The very first test in the STAKE_POOLS_LIST_01 series has implicit dependency on time. If run too soon (as is the case if the test is run in isolation), such that the wallet has not yet had a chance to catch up with tip, then the wallet API will return an empty list, which will cause a test failure.

To fix this, this PR nests the test inside an eventually combinator, which allows the test to be run in isolation (just like the others in the STAKE_POOLS_LIST_01 series).

Additional changes:

  • Fixes some spelling errors.
  • Reformatting to comply with our coding standards.

This change makes it possible to run tests from `STAKE_POOLS_LIST_01`
in isolation, without having to run the entire stake pool integration
test suite.
@jonathanknowles jonathanknowles requested a review from Anviking July 13, 2020 09:11
@jonathanknowles jonathanknowles marked this pull request as ready for review July 13, 2020 09:11
@jonathanknowles jonathanknowles changed the title WIP: Enable STAKE_POOLS_LIST tests to run in isolation. Enable STAKE_POOLS_LIST tests to run in isolation. Jul 13, 2020
@jonathanknowles
Copy link
Contributor Author

bors r+

iohk-bors bot added a commit that referenced this pull request Jul 13, 2020
1899: Enable `STAKE_POOLS_LIST` tests to run in isolation. r=jonathanknowles a=jonathanknowles

# Issue Number

#1819 

# Overview

The very first test in the `STAKE_POOLS_LIST_01` series has implicit dependency on time. If run _too soon_ (as is the case if the test is run in isolation), such that the wallet has not yet had a chance to catch up with tip, then the wallet API will return an empty list, which will cause a test failure.

To fix this, this PR nests the test inside an `eventually` combinator, which allows the test to be run in isolation (just like the others in the `STAKE_POOLS_LIST_01` series).

Additional changes:

- [x] Fixes some spelling errors.
- [x] Reformatting to comply with our coding standards.


Co-authored-by: Jonathan Knowles <[email protected]>
@jonathanknowles jonathanknowles self-assigned this Jul 13, 2020
@jonathanknowles jonathanknowles added the IMPROVEMENT Mark a PR as an improvement, for auto-generated CHANGELOG label Jul 13, 2020
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jul 13, 2020

Build failed

@jonathanknowles
Copy link
Contributor Author

bors r+

iohk-bors bot added a commit that referenced this pull request Jul 13, 2020
1845: Add latency benchmark for shelley r=rvl a=rvl

Relates to #1825.

### Overview

- Ports latency benchmarks to shelley backend.
- Refactors duplicate code into a shared module.
- Adds listStakePools to benchmarks

1899: Enable `STAKE_POOLS_LIST` tests to run in isolation. r=jonathanknowles a=jonathanknowles

# Issue Number

#1819 

# Overview

The very first test in the `STAKE_POOLS_LIST_01` series has implicit dependency on time. If run _too soon_ (as is the case if the test is run in isolation), such that the wallet has not yet had a chance to catch up with tip, then the wallet API will return an empty list, which will cause a test failure.

To fix this, this PR nests the test inside an `eventually` combinator, which allows the test to be run in isolation (just like the others in the `STAKE_POOLS_LIST_01` series).

Additional changes:

- [x] Fixes some spelling errors.
- [x] Reformatting to comply with our coding standards.


Co-authored-by: Rodney Lorrimar <[email protected]>
Co-authored-by: Piotr Stachyra <[email protected]>
Co-authored-by: Jonathan Knowles <[email protected]>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jul 13, 2020

Build failed (retrying...)

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jul 13, 2020

@iohk-bors iohk-bors bot merged commit 1c666fa into master Jul 13, 2020
@iohk-bors iohk-bors bot deleted the jonathanknowles/stake-pool-list-test-isolation branch July 13, 2020 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IMPROVEMENT Mark a PR as an improvement, for auto-generated CHANGELOG
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants