Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-2033

Instable integration test with Testcontainers

    XMLWordPrintable

Details

    Description

      See https://travis-ci.org/github/debezium/debezium/jobs/680881926:

      [ERROR] canRegisterConnector(io.debezium.testing.testcontainers.DebeziumContainerTest)  Time elapsed: 1.493 s  <<< ERROR!
      com.jayway.jsonpath.PathNotFoundException: No results for path: $['tasks'][0]['state']
      	at com.jayway.jsonpath.internal.path.EvaluationContextImpl.getValue(EvaluationContextImpl.java:133)
      	at com.jayway.jsonpath.JsonPath.read(JsonPath.java:187)
      	at com.jayway.jsonpath.internal.JsonContext.read(JsonContext.java:102)
      	at com.jayway.jsonpath.internal.JsonContext.read(JsonContext.java:89)
      	at com.jayway.jsonpath.JsonPath.read(JsonPath.java:502)
      	at io.debezium.testing.testcontainers.DebeziumContainerTest.canRegisterConnector(DebeziumContainerTest.java:78)
      

      Task instantiation is async after connector deployment, hence the race condition can arise. We should use Awaitility to wait for the task to be spawned.

      Attachments

        Activity

          People

            gmorling@redhat.com Gunnar Morling
            gmorling@redhat.com Gunnar Morling
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: