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

bugfix - resolve issue #1155 #1156

Merged
merged 3 commits into from
Nov 30, 2024

Conversation

kapishmalik
Copy link
Collaborator

Resolves #1155

Comment on lines 402 to 409
//// Jsonpath library converts large int into a string with scientific notion, the following
//// reverts that process to avoid mismatching when using the jsonpath result for csv data lookup
//floatResult, err := strconv.ParseFloat(result, 64)
//// if the string is a float and a whole number
//if err == nil && floatResult == float64(int64(floatResult)) {
// intResult := int(floatResult)
// result = strconv.Itoa(intResult)
//}
Copy link
Member

Choose a reason for hiding this comment

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

but this introduces another issue...

Copy link
Collaborator Author

@kapishmalik kapishmalik Nov 30, 2024

Choose a reason for hiding this comment

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

This is not correct way to do things. I am not sure why we added this bad alternative to that problem.

Copy link
Member

Choose a reason for hiding this comment

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

so what would be the correct way?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@tommysitu is that change still needed?

Copy link
Member

@tommysitu tommysitu Nov 30, 2024

Choose a reason for hiding this comment

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

yes, it's needed. By commenting it out, several tests will fail, eg. Test_ApplyTemplate_PutAndGetValue

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@tommysitu I have added handling for it.

tommysitu
tommysitu approved these changes Nov 30, 2024
@tommysitu tommysitu merged commit 16dd451 into SpectoLabs:master Nov 30, 2024
3 checks 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.

Hoverfly templating issue with number greater than 9007199254740991
2 participants