-
Notifications
You must be signed in to change notification settings - Fork 67
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
Conversation
if err != nil { | ||
return leftValue.String(), rightValue.String(), err | ||
} | ||
|
There was a problem hiding this comment.
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.
There was a problem hiding this 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 |
There was a problem hiding this comment.
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.
# TRACETEST_CLI_MAIN="$(go env GOPATH)/bin/tracetest" \ | ||
TRACETEST_CLI_MAIN="../cli/tracetest" \ |
There was a problem hiding this comment.
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
This PR fixes #1421
Checklist