[jira] [Commented] (KARAF-6048) Camel Test case prone to endless loop

2018-12-13 Thread JIRA


[ 
https://issues.apache.org/jira/browse/KARAF-6048?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16721007#comment-16721007
 ] 

Martin Krüger commented on KARAF-6048:
--

[~jbonofre]: Yes. The timeout solution is way better.

> Camel Test case prone to endless loop
> -
>
> Key: KARAF-6048
> URL: https://issues.apache.org/jira/browse/KARAF-6048
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Reporter: Martin Krüger
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Fix For: 4.2.2
>
>
> During my build the test case CamelExampleTest.testBlueprintDSL() ended up in 
> an endless loop.
> The problem is {code}
> while (true) {
> if (!output.contains("Started")) {
> Thread.sleep(500);
> output = executeCommand("camel:route-list");
> } else {
> break;
> }
> }{code} in the verify method. This loop has to contain an exit path 
> with a failure.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (KARAF-6048) Camel Test case prone to endless loop

2018-12-13 Thread JIRA


[ 
https://issues.apache.org/jira/browse/KARAF-6048?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16720935#comment-16720935
 ] 

Jean-Baptiste Onofré commented on KARAF-6048:
-

No need, timeout on {{@Test}} is better. I thought I already did that.

> Camel Test case prone to endless loop
> -
>
> Key: KARAF-6048
> URL: https://issues.apache.org/jira/browse/KARAF-6048
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Reporter: Martin Krüger
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Fix For: 4.2.2
>
>
> During my build the test case CamelExampleTest.testBlueprintDSL() ended up in 
> an endless loop.
> The problem is {code}
> while (true) {
> if (!output.contains("Started")) {
> Thread.sleep(500);
> output = executeCommand("camel:route-list");
> } else {
> break;
> }
> }{code} in the verify method. This loop has to contain an exit path 
> with a failure.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (KARAF-6048) Camel Test case prone to endless loop

2018-12-13 Thread ASF subversion and git services (JIRA)


[ 
https://issues.apache.org/jira/browse/KARAF-6048?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16720143#comment-16720143
 ] 

ASF subversion and git services commented on KARAF-6048:


Commit b2e5c3d5133e8dc0107b38dae0e90fc331448da7 in karaf's branch 
refs/heads/master from [~j...@nanthrax.net]
[ https://gitbox.apache.org/repos/asf?p=karaf.git;h=b2e5c3d ]

[KARAF-6048] Change waiting loop in CamelExampleTest


> Camel Test case prone to endless loop
> -
>
> Key: KARAF-6048
> URL: https://issues.apache.org/jira/browse/KARAF-6048
> Project: Karaf
>  Issue Type: Bug
>  Components: karaf
>Reporter: Martin Krüger
>Assignee: Jean-Baptiste Onofré
>Priority: Major
> Fix For: 4.2.2
>
>
> During my build the test case CamelExampleTest.testBlueprintDSL() ended up in 
> an endless loop.
> The problem is {code}
> while (true) {
> if (!output.contains("Started")) {
> Thread.sleep(500);
> output = executeCommand("camel:route-list");
> } else {
> break;
> }
> }{code} in the verify method. This loop has to contain an exit path 
> with a failure.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)