Skip to content

Commit 69f8608

Browse files
Bordalantiga
authored andcommitted
update flaky syntax (#21156)
(cherry picked from commit bb4769f)
1 parent 17d2d78 commit 69f8608

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/tests_fabric/utilities/test_spike.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def spike_detection_test(fabric, global_rank_spike, spike_value, should_raise):
3030
)
3131

3232

33-
@pytest.mark.flaky(max_runs=3)
33+
@pytest.mark.flaky(reruns=3)
3434
@pytest.mark.parametrize(
3535
("global_rank_spike", "num_devices", "spike_value", "finite_only"),
3636
# NOTE FOR ALL FOLLOWING TESTS:

tests/tests_pytorch/callbacks/test_spike.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def on_train_batch_end(self, trainer, pl_module, outputs, batch, batch_idx):
4848
super().on_train_batch_end(trainer, pl_module, outputs, batch, batch_idx)
4949

5050

51-
@pytest.mark.flaky(max_runs=3)
51+
@pytest.mark.flaky(reruns=3)
5252
@pytest.mark.parametrize(
5353
("global_rank_spike", "num_devices", "spike_value", "finite_only"),
5454
# NOTE FOR ALL FOLLOWING TESTS:

0 commit comments

Comments
 (0)