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

fix: make failed assertions to return the formatted duration field #1422

Merged
merged 14 commits into from
Oct 25, 2022

Conversation

mathnogueira
Copy link
Member

This PR fixes #1421

Checklist

  • tested locally
  • added new dependencies
  • updated the docs
  • added a test

Comment on lines -63 to -66
if err != nil {
return leftValue.String(), rightValue.String(), err
}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you look at the next lines, you will see that this err will be returned after formatting the duration fields. So it's safe to remove this condition.

Copy link
Collaborator

@xoscar xoscar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

- name: Install CLI intergation version (latest main)
run: |
export GOPATH=$(go env GOPATH)
go install -v github.com/kubeshop/tracetest/cli@latest
go install -v github.com/kubeshop/tracetest/cli@main
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We were installing the latest released version instead of the latest main version.

Comment on lines +301 to +302
# TRACETEST_CLI_MAIN="$(go env GOPATH)/bin/tracetest" \
TRACETEST_CLI_MAIN="../cli/tracetest" \
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be rolledback after this is merged. Otherwise the tests will not pass due to a bug in the CLI

@mathnogueira mathnogueira merged commit e8cab66 into main Oct 25, 2022
@mathnogueira mathnogueira deleted the fix/assertion-duration branch October 25, 2022 16:53
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.

duration value is not formatted when assertion fails
3 participants