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

Control over block production and rollbacks in tests #42

Open
euonymos opened this issue Jul 30, 2024 · 1 comment
Open

Control over block production and rollbacks in tests #42

euonymos opened this issue Jul 30, 2024 · 1 comment
Labels

Comments

@euonymos
Copy link
Member

Is there any testing framework like plutip that allows for control over block production and rollbacks? I think something like this would be very useful:

myTest = do
  submitTx foo
  produceBlock
  point <- currentTip
  submitTx bar
  produceBlock
  assert t1
  rollbackTo point
  assert t2

(courtesy of @t4ccer)

@euonymos euonymos changed the title Control over block production and rollbacks Control over block production and rollbacks in tests Nov 22, 2024
@euonymos
Copy link
Member Author

CLB now has the notion of blocks (though it still lacks the notion of rollbacks), but only as a socket emulator. The pure part still doesn't deal with blocks. Moreover, testing capabilities in Atlas don't provide such an API. So this can't seem to be easy to implement for the time being.

@euonymos euonymos added the ideas label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant