8000 [cleanup] Remove redundant pattern of manually creating store, epoch manager, runtime in integration tests by shreyan-gupta · Pull Request #9595 · near/nearcore · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[cleanup] Remove redundant pattern of manually creating store, epoch manager, runtime in integration tests #9595

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

Merged
merged 2 commits into from
Sep 26, 2023

Conversation

shreyan-gupta
Copy link
Contributor

We had a common pattern of creating a bunch of manual stores, epoch managers, and nightshade runtime for the test environment. This PR brings the default functionality to the test environment builder.

@shreyan-gupta shreyan-gupta requested a review from a team as a code owner September 26, 2023 18:34
.epoch_managers(epoch_managers)
.runtimes(runtimes)
.clients_count(2)
.real_stores()
Copy link
Contributor

Choose a reason for hiding this comment

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

what does 'real' mean here? Is there non-real version of it?

Copy link
Contributor Author
@shreyan-gupta shreyan-gupta Sep 26, 2023

Choose a reason for hiding this comment

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

We have a test_store, i.e. in-memory store and we have a "real" store which is rocksdb on disk. This could be an appropriate name as we have things like real_epoch_managers function to "not create mock epoch managers"

@shreyan-gupta shreyan-gupta added this pull request to the merge queue Sep 26, 2023
Merged via the queue into master with commit d7ad526 Sep 26, 2023
@shreyan-gupta shreyan-gupta deleted the shreyan/integration_test/snapshot_cleanup branch September 26, 2023 19:32
nikurt pushed a commit that referenced this pull request Oct 2, 2023
…manager, runtime in integration tests (#9595)

We had a common pattern of creating a bunch of manual stores, epoch
managers, and nightshade runtime for the test environment. This PR
brings the default functionality to the test environment builder.
nikurt pushed a commit that referenced this pull request Oct 2, 2023
…manager, runtime in integration tests (#9595)

We had a common pattern of creating a bunch of manual stores, epoch
managers, and nightshade runtime for the test environment. This PR
brings the default functionality to the test environment builder.
nikurt pushed a commit that referenced this pull request Oct 11, 2023
…manager, runtime in integration tests (#9595)

We had a common pattern of creating a bunch of manual stores, epoch
managers, and nightshade runtime for the test environment. This PR
brings the default functionality to the test environment builder.
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.

3 participants
0