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

pool_admin tests #19

Merged
merged 1 commit into from
Feb 24, 2024
Merged

pool_admin tests #19

merged 1 commit into from
Feb 24, 2024

Conversation

ts0yu
Copy link
Collaborator

@ts0yu ts0yu commented Feb 24, 2024

Very interested in people's thoughts on this pattern - was kinda riffing.

Effectively have one world in which we simulate normal usage of behaviours, in this case PoolAdmin. We send a deploy request and deploy factory, pool and two mock tokens.

Have another world purely for test assertions, with the same environment as the first world. Assertion behaviour that checks assumptions about behaviours previous execution.

PR implements this as a test for the PoolAdmin behaviour.

Copy link
Collaborator

@Autoparallel Autoparallel left a comment

Choose a reason for hiding this comment

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

I like this strategy. The asserter could be generalized eventually too.

This also motivates the World::builder() more. We should go ahead and start that.

@Autoparallel Autoparallel merged commit 0b0ba9a into main Feb 24, 2024
4 checks passed
@Autoparallel Autoparallel deleted the z/tests branch February 24, 2024 18:22
Copy link
Contributor

@0xJepsen 0xJepsen left a comment

Choose a reason for hiding this comment

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

love the test design on this

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