Skip to content

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

@Powersource

Description

@Powersource

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions