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

reorder teardown callback to after the error event, and setResults. #63

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jdmarshall
Copy link

fix for #61

Change order of operations to

  • emit error event if it exists
  • calculate results
  • call teardown hook
  • emit cycle event

I'm not sure why you would ever call teardown before dealing with an error that was part of the test run.

Putting teardown after setResults allows a person to purge the samples to avoid memory starvation in longer test runs.

I'm not sure why you would ever call teardown before dealing with an
error that was part of the test run.

Putting teardown after setResults allows a person to purge the samples
to avoid memory starvation in longer test runs.
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.

None yet

1 participant