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

Add prettyPrint and printReturnLimit to processUrllibRequest() #1210

Merged
merged 1 commit into from
May 23, 2023

Conversation

jgiszczak
Copy link
Contributor

When debugging a failed test, the default truncation limit of 1024 can conceal important information returned from nodeos when using the Test Harness processUrllibRequest method. In addition, the result is logged on a single line, which is seldom readable.

This PR adds two arguments to processUrllibRequest to allow testers to override the limit and enable pretty printing. Pass None as the limit to have it print all of the output (unlimited).

@heifner heifner added the OCI Work exclusive to OCI team label May 23, 2023
@heifner heifner requested a review from ScottBailey May 23, 2023 13:53
Copy link
Contributor

@ScottBailey ScottBailey left a comment

Choose a reason for hiding this comment

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

Left a comment regarding style, feel free to ignore.

@jgiszczak jgiszczak merged commit d215122 into main May 23, 2023
@jgiszczak jgiszczak deleted the test-harness-urllib-configurable-limit branch May 23, 2023 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCI Work exclusive to OCI team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants