Uploaded image for project: 'AMQ Streams'
  1. AMQ Streams
  2. ENTMQST-2675

[QE] - waitFor should print result of last exec after timeout into log

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • None
    • None
    • False
    • False
    • Undefined

      When the TestUtils.waitFor(..) method fails on timeout, we just get simple info which is specified as a method parameter -> for example:

      io.strimzi.test.WaitException: Timeout after 300000 ms waiting for Logger change
      	at io.strimzi.test.TestUtils.waitFor(TestUtils.java:136)
      	at io.strimzi.test.TestUtils.waitFor(TestUtils.java:117)
      	at io.strimzi.systemtest.log.LoggingChangeST.testDynamicallySetConnectLoggingLevels(LoggingChangeST.java:677)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      

      But, we should also print last result of the waitFor into the debug log - this will help us find out what's wrong.

       

      So, the best way should be to add one more exec on timeout and then print everything to debug log.

              Unassigned Unassigned
              lkral Lukas Kral
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: