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

collect duration after recover #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

collect duration after recover #4

wants to merge 3 commits into from

Conversation

mloo3
Copy link

@mloo3 mloo3 commented May 19, 2023

Description

Added duration of test result after recover() to account for when a barrer.Step fails.

Motivation and Context

When a barrier.Step fails, it panics, which means that this line https://github.com/PaloAltoNetworks/barrier/blob/master/runner.go#LL149C28-L149C29 will be skipped. As a result, when the logs are printed duration will be at its default value (0), thus will look like this Iteration [1] log after 0s

How Has This Been Tested?

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes if appropriate.
  • All new and existing tests passed.

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.

1 participant