Skip to content

Commit

Permalink
Implemented PR suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldisu committed May 17, 2021
1 parent 8e7463e commit 917c205
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class FlakyTestRule : TestRule {
* Use this method when constructing the Rule to apply a default behavior of @[Repeat] without having to add the annotation to
* each test. This can help you to find flaky tests.
* <br></br>
* The default behavior can be overridden with [Repeat] or [Repeat].
* The default behavior can be overridden with [Repeat] or [AllowFlaky].
*/
fun repeatAttemptsByDefault(defaultAttempts: Int): FlakyTestRule {
flakyStatementBuilder.setRepeatAttemptsByDefault(defaultAttempts)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public void repeatStatementReturnedWhenRepeatAnnotationFound() throws Exception
}

@Test
public void repeatStatementReturnedWhenRepeatSetRepeatAttemptsByDefault() throws Exception {
public void repeatStatementReturnedWhenSettingDefaultRepeatAttempts() throws Exception {
Statement baseStatement = new SomeStatement();
Description description = Description.EMPTY;

Expand Down Expand Up @@ -75,7 +75,7 @@ public void allowFlakyStatementReturnedWhenNoAnnotationsFoundButUsesDefault() th
}

@Test
public void lastStatementReturnedWhenRepeatAttemptsByDefaultAndAllowFlakyStatementUsedAtTheSameTime() throws Exception {
public void lastStatementReturnedWhenDefaultRepeatAttemptsAndAllowFlakyStatementUsedAtTheSameTime() throws Exception {
Statement baseStatement = new SomeStatement();
Description description = Description.EMPTY;

Expand Down

0 comments on commit 917c205

Please sign in to comment.