[
https://issues.apache.org/jira/browse/ARIES-355?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jarek Gawor resolved ARIES-355.
-------------------------------
Assignee: Jarek Gawor
Fix Version/s: 0.2
Resolution: Fixed
Committed the patch with some changes to trunk (revision 964168). Thanks!
Looks like checking for the url handler service is not enough. There is a small
window where the handler service is registered (and waitForService() in the
test returns) but the framework doesn't quite know about it just yet. So I
modified the test to check if the handler is registered by trying to create a
URL with webbundle scheme.
> Web itests - clean-up
> ---------------------
>
> Key: ARIES-355
> URL: https://issues.apache.org/jira/browse/ARIES-355
> Project: Aries
> Issue Type: Improvement
> Components: Web
> Affects Versions: 0.2
> Reporter: Bartosz Kowalewski
> Assignee: Jarek Gawor
> Fix For: 0.2
>
> Attachments: aries-355.patch
>
>
> I've applied some minor changes to the WabConverterITest class. I took a look
> at this class after seeing logs from build #580 (WabConverterITest failed in
> #580).However, the changes I propose are not really related with the issue
> observed in #580 - they are rather meant to do clean up.
> In order to get rid of the issue observed in #580 it might be necessary to
> increase the amount of time this test waits for the WAR URL Stream Handler
> Service. TIt currently waits 10 seconds. I guess this could be increased to
> 15 seconds:
> URLStreamHandlerService warHandler =
> getOsgiService(URLStreamHandlerService.class,
> "(url.handler.protocol=webbundle)", 15000);
> or even to the default timeout which is 30 seconds.
> Changes that applied in the patch
> 1. fout.close() added
> 2. Service tracker references kept and closed during test teardown
> 3. Service tracker used instead of bundleContext.getServiceReferences()
> 4. There's no need to check urlhandler bundle state. Checking if the WAR URL
> Stream Handler Service is present should be sufficient.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.