[jira] [Created] (FLINK-22395) Extend RetryRule to allow class-wide defaults

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-22395) Extend RetryRule to allow class-wide defaults

Shang Yuanchun (Jira)
Chesnay Schepler created FLINK-22395:
----------------------------------------

             Summary: Extend RetryRule to allow class-wide defaults
                 Key: FLINK-22395
                 URL: https://issues.apache.org/jira/browse/FLINK-22395
             Project: Flink
          Issue Type: Improvement
          Components: Tests
            Reporter: Chesnay Schepler
            Assignee: Chesnay Schepler
             Fix For: 1.13.0


Our RetryRule allows annotating individual test methods to run them multiple times if they fail or a specific exception occurs.

However, this is a bit cumbersome to use in larger test classes, or when inheriting test methods from parent classes.

We could extend it to accept defaults via the constructor, which are applied if no specific annotation is used.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)