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

In crash-resistance tests, use secret opts that make the functions crash at certain points #107

Open
Powersource opened this issue May 4, 2023 · 0 comments

Comments

@Powersource
Copy link
Collaborator

Instead of trying to replicate how things probably look after a crash

for instance in create.test.js we have hacky code that partially creates a group.

mix suggested at some point (and i think this is probably better now that i've run into some weird test errors due to mismatch (due to updates of the function) between how the function and the emulation works) to use secret opts. something like

create(opts, cb) {
...
createGroupFeed((err, feed) => {
  if (err || opts._crashOnCreateGroupFeed) return cb(err)
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

No branches or pull requests

1 participant