GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||
GeezerVison is showing github.com — Updated readInt method so streams are closed on failure or success by srnkan · Pull Request #1476 · processing/processing4 Conversation
|
|
I'd like @Ebaron96 to be assigned as a reviewer if possible |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@srnkan sorry for the confusion in closing the issue without comment. i'll leave a review soon. i can't add ebaron96 as a reviewer until they have contributed code. but they are welcome to review. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This is a great start! I noticed there aren't any tests in the UpdateCheckTest class.
It could use some!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| public class UpdateCheckTest { | ||
| } |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This could use some tests!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I agree, but I was unable to compile tests for the issue because of the ongoing testing issue. Once that issue is resolved, I'm happy to go back and add tests. Thank you!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
OH my gosh, yes. I just want to clarify my understanding of the testing issue, is it the broken tests for ProcessingPlugin ? Or something in addition to that?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
looks good to me as well!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
It's the same issue that Mark was talking about in the discord yesterday. Certain .gradlew tests fail automatically
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
ohh yes, thanks for clarifying @srnkan! that isn't a blocker in this case. we'll just assume those tests are broken, so feel free to get started on this test. it could be helpful to toss in a little assertTrue(true) as a sanity check
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| try(InputStream stream = url.openStream(); | ||
| InputStreamReader isr = new InputStreamReader(stream); | ||
| BufferedReader reader = new BufferedReader(isr); | ||
| return Integer.parseInt(reader.readLine()); | ||
| BufferedReader reader = new BufferedReader(isr)) { | ||
| return Integer.parseInt(reader.readLine()); | ||
| } |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
this is really cool! good use of try-with-resources.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I added tests to the UpdateCheckTest.java file, with 16 tests. Also, Mark and I noticed that in the build.gradle.kts file under the app build, only kotlin tests are ran. So, I modified that file to include java tests.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
47a8802 to
b9b794e
Compare
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
thanks for adding these tests!!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Unclosed file streams in UpdateCheck
There was an error while loading. Please reload this page.