Skip to content

Commit 9eac52d

Browse files
committed
flaky test_async_checkpoint_plugin
1 parent d490db7 commit 9eac52d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/tests_pytorch/plugins/test_checkpoint_io_plugin.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
from typing import Any, Optional
1717
from unittest.mock import MagicMock, Mock
1818

19+
import pytest
1920
import torch
2021

2122
from lightning.fabric.plugins import CheckpointIO, TorchCheckpointIO
@@ -97,6 +98,7 @@ def test_checkpoint_plugin_called(tmp_path):
9798
checkpoint_plugin.load_checkpoint.assert_called_with(str(tmp_path / "last-v1.ckpt"))
9899

99100

101+
@pytest.mark.flaky(reruns=3)
100102
def test_async_checkpoint_plugin(tmp_path):
101103
"""Ensure that the custom checkpoint IO plugin and torch checkpoint IO plugin is called when async saving and
102104
loading."""

0 commit comments

Comments
 (0)