aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raymond Augé (JIRA) <>
Subject [jira] [Created] (ARIES-1871) race condition during test execution
Date Tue, 27 Nov 2018 17:57:00 GMT
Raymond Augé created ARIES-1871:

             Summary: race condition during test execution
                 Key: ARIES-1871
             Project: Aries
          Issue Type: Bug
          Components: jax-rs-whiteboard
            Reporter: Raymond Augé

When I run the jax-rs-whiteboard tests about 30-40% of the time I get a failure as follows
(Always the same test):
TEST testSSEApplication(test.JaxrsTest) <<< ERROR: expected:<[welcome, message]>
but was:<[]>
java.lang.AssertionError: expected:<[welcome, message]> but was:<[]>
    at org.junit.Assert.failNotEquals(
    at org.junit.Assert.assertEquals(
    at org.junit.Assert.assertEquals(
    at test.JaxrsTest.testSSEApplication(
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.lang.reflect.Method.invoke(
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(
    at org.junit.internal.runners.statements.RunBefores.evaluate(
    at org.junit.internal.runners.statements.RunAfters.evaluate(
    at org.junit.runners.ParentRunner.runLeaf(
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(
    at org.junit.runners.ParentRunner$
    at org.junit.runners.ParentRunner$1.schedule(
    at org.junit.runners.ParentRunner.runChildren(
    at org.junit.runners.ParentRunner.access$000(
    at org.junit.runners.ParentRunner$2.evaluate(
    at junit.framework.TestSuite.runTest(
    at aQute.junit.Activator.test(
    at aQute.junit.Activator.automatic(
    at aQute.launcher.Launcher.lambda$serviceChanged$0(
    at aQute.launcher.Launcher.main(
12:51:16.883 [main] ERROR o.a.a.j.r.w.internal.Whiteboard - Invalid ''
filter syntax in CachingServiceReference {
serviceReference={java.lang.Object}={osgi.jaxrs.resource=true,, service.bundleid=12,
Tests run  : 64
Passed     : 63
Errors     : 1
Failures   : 0
[INFO] 1 Error(s){code}

there's often a variation in the actual result, such as zero or one of "{{welcome, message".}}

This message was sent by Atlassian JIRA

View raw message