-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
Test source document #343
Test source document #343
Conversation
dpgraham
commented
Dec 11, 2018
- Add a test that would cause a Java heap error, if not for the XML traversal depth limit introduced by: Limit traversal depth and maximum length of xml values to avoid unexpected OOM errors #341
- Runs the tests on Travis CI now. Skips the Espresso Server test by adding a property that tells the test to be skipped.
Looks good, but hold on with tests please, until the original problem is fully addressed. |
@mykola-mokhnach How about we commit the tests now, and then afterwards I'll update the tests to reflect any new changes. |
I would prefer to wait. But if you are in rush... |
@mykola-mokhnach Sure... do you have any recommendations for other cases that we can test on SourceDocument? I'd like to get pretty good coverage. |
0730124
to
59fda00
Compare
@@ -317,4 +317,8 @@ public String toXMLString() throws AppiumException { | |||
throw new XPathLookupException(xpathSelector, xe.getMessage()); | |||
} | |||
} | |||
|
|||
public static void $setMaxTraverseDepth(int maxTraverseDepth) { |
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.
I'd rather mark it as visibleForTesting