[ 
https://issues.apache.org/jira/browse/TUSCANY-2192?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mark Combellack resolved TUSCANY-2192.
--------------------------------------

    Resolution: Fixed

I've improved the way in which the waiting for the @OnwWay methods to takes 
place. Instead of waiting for a fixed 2 seconds, it waits in a loop until all 
the @OneWay operations complete or 10 seconds passes.

These changes will speed up the tests since it does not need to wait the 
original 2 seconds on a fast computer and allows extra time for the @OneWay 
methods to complete on a slower computer.

Fixed in SVN revision 644255

> iTest/OneWay has just failed on the Continuum server and has blocked the 
> build on the root
> ------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-2192
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2192
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Integration Tests
>    Affects Versions: Java-SCA-Next
>            Reporter: Mark Combellack
>            Assignee: Mark Combellack
>             Fix For: Java-SCA-Next
>
>
> http://vmbuild.apache.org/continuum/buildResult.action?buildId=72567&projectId=277
> The Continuum build has failed in the Apache Tuscany SCA OneWay Integration 
> Tests
> The error output is:
> Apr 2, 2008 6:31:23 PM org.apache.tuscany.sca.http.jetty.JettyServer 
> addServletMapping
> INFO: Added Servlet mapping: 
> http://vmbuild.apache.org:50976/OneWayServiceComponent
> Finished callCount = 99
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 45.584 sec 
> <<< FAILURE!
> testOneWay(org.apache.tuscany.sca.itest.oneway.OneWayTestCase)  Time elapsed: 
> 45.55 sec  <<< FAILURE!
> junit.framework.AssertionFailedError: expected:<100> but was:<99>
>       at junit.framework.Assert.fail(Assert.java:47)
>       at junit.framework.Assert.failNotEquals(Assert.java:277)
>       at junit.framework.Assert.assertEquals(Assert.java:64)
>       at junit.framework.Assert.assertEquals(Assert.java:195)
>       at junit.framework.Assert.assertEquals(Assert.java:201)
>       at 
> org.apache.tuscany.sca.itest.oneway.OneWayTestCase.testOneWay(OneWayTestCase.java:73)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>       at java.lang.reflect.Method.invoke(Method.java:585)
>       at 
> org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)
>       at 
> org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)
>       at 
> org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
>       at 
> org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
>       at 
> org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
>       at 
> org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:75)
>       at 
> org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:36)
>       at 
> org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
>       at 
> org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
>       at 
> org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
>       at 
> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
>       at 
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
>       at 
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
>       at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>       at java.lang.reflect.Method.invoke(Method.java:585)
>       at 
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:308)
>       at 
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:879)
> Results :
> Failed tests: 
>   testOneWay(org.apache.tuscany.sca.itest.oneway.OneWayTestCase)
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to