Skip to content

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.

2 participants