Skip to content

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