jbonofre opened a new pull request, #2981:
URL: https://github.com/apache/karaf/pull/2981

   `WebTest.installViaMBean` failed intermittently on the Windows CI runner 
with:
   
   ```
   InstanceNotFound org.apache.karaf:type=web,name=root
   ```
   
   The test looked up the web MBean right after the `war` / `pax-web-karaf` 
features were installed, before the MBean was registered.
   
   This change:
   - waits (up to 30s) for the web MBean to be registered before `listViaMBean` 
and `installViaMBean` use it
   - replaces the fixed `Thread.sleep(2000)` in `installViaMBean` with a 
bounded poll on `WebBundles`, which had the same race
   
   Test-only change. The failure was seen on #2978 and passed on re-run with no 
code change.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to