Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-17260 Enhance new test infra
  3. KAFKA-16813

Add global timeout for "@Test" and "@TestTemplate"

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 4.0.0
    • None
    • None

    Description

      in code base `@Test` is used by unit test and `@TestTemplate` is used by integration test. The later includes `ParameterizedTest`, `ClusterTest`, `ClusterTests`, and `ClusterTemplate`. Hence, we can add two different timeout for `@Test` and `@TestTemplate`. For example:

      junit.jupiter.execution.timeout.default = 30s
      junit.jupiter.execution.timeout.testtemplate.method.default = 120s

      The accurate timeout value may need more discussion, but we can try it in small junit5 module first. For example: tools module and storage module.

      Attachments

        Issue Links

          Activity

            People

              m1a2st 黃竣陽
              chia7712 Chia-Ping Tsai
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: