Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-2970

SsePublisherClientTest fails with bootable-jar

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 3.15.2.Final
    • 3.15.2.Final
    • None
    • None
    • Hide
      • git checkout 3.15
      • mvn clean verify -Dts.bootable -Ddefault=false -Ddisable.microprofile.tests -B -fae -Dmaven.test.failure.ignore=true -f testsuite/pom.xml -Dserver.home=foo -Denforcer.skip -Dtest=SsePublisherClientTest
      Show
      git checkout 3.15 mvn clean verify -Dts.bootable -Ddefault=false -Ddisable.microprofile.tests -B -fae -Dmaven.test.failure.ignore=true -f testsuite/pom.xml -Dserver.home=foo -Denforcer.skip -Dtest=SsePublisherClientTest
    • Undefined

    Description

      org.jboss.resteasy.test.microprofile.restclient.SsePublisherClientTest fails when running against bootable-jar (branch 3.15)

      [ERROR] testSseClient(org.jboss.resteasy.test.microprofile.restclient.SsePublisherClientTest)  Time elapsed: 2.401 s  <<< FAILURE!
      java.lang.AssertionError
      	at org.junit.Assert.fail(Assert.java:87)
      	at org.junit.Assert.assertTrue(Assert.java:42)
      	at org.junit.Assert.assertFalse(Assert.java:65)
      	at org.junit.Assert.assertFalse(Assert.java:75)
      	at org.jboss.resteasy.test.microprofile.restclient.SsePublisherClientTest.testSseClient(SsePublisherClientTest.java:69)
      ...
      

      From the 12 produced events the first 10 are received instead of expected the first 5 and the last 5 events. See https://github.com/resteasy/Resteasy/blob/3.15/testsuite/integration-tests/src/test/java/org/jboss/resteasy/test/microprofile/restclient/SsePublisherClientTest.java#L69

      This is caused by missing systemPropertyVariables configuration <resteasy.microprofile.sseclient.buffersize>5</resteasy.microprofile.sseclient.buffersize> in bootable jar surefire execution. See https://github.com/resteasy/Resteasy/blob/3.15/testsuite/integration-tests/pom.xml#L285

      Attachments

        Activity

          People

            okotek@redhat.com Ondrej Kotek
            okotek@redhat.com Ondrej Kotek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: