BE: Fix KafkaConsumerGroupTests on Windows#261
Conversation
shouldOkWhenConsumerGroupIsNotActive was returning a 400 instead of a 200 without the try with resources block, once I added it, the test consistently passes.
|
@busches your changes looks fine, but I can't understand how they can fix tests on windows) Can you please add more context here and describe why this is working now? |
|
Further user feedback is requested. Please reply within 7 days or we might close the issue. |
|
What the code change does is ensure that the Consumer Group is cleaned up, with the try with resources, before it executes the API request. The same is true for the other test, where we leave the Consumer Group up until after the API request. That test did not have any issues passing for me, but I changed it to mirror the other for self documenting purposes. The issue may not be related to Windows at all, but that's what I'm running. It could be a case of my computer is too slow to remove the consumer group fully before the API request runs or potentially something with my JDK, I was using Oracle and will swap to Termium tonight. Note: there were three failing test suites I encountered, this one, one for the Protobuf stuff (unsure of the cause) and another that is 100% OS line endings that I'll fix next. |
|
Thanks for the additional feedback! We'll get back to your issue soon. |
|
I don't personally mind a few try with resources here even if they don't fix anything as long as it's not PR spam. |
|
@Haarolean I would like to fix the other test failures I'm seeing on Windows, but no ETA on when I can get them in :) |
Not replacing it, means `language/language.proto` is not found in the Map on Windows. Updating just the key, results in a duplicate file found with different path, as it still loads the import and from the directory pathing.
|
Everything is passing now on Windows. I didn't like that I had to change |
|
|
Thanks for a contribution and sorry for the delay |




What changes did you make? (Give an overview)
shouldOkWhenConsumerGroupIsNotActivewas returning a 400 instead of a 200 without the try with resources block, once I added it, the test consistently passes. Additionally removed some unused variables and usedtoList()added with JDK 17.Is there anything you'd like reviewers to focus on?
How Has This Been Tested? (put an "x" (case-sensitive!) next to an item)
Checklist (put an "x" (case-sensitive!) next to all the items, otherwise the build will fail)
Check out Contributing and Code of Conduct
A picture of a cute animal (not mandatory but encouraged)