diff --git a/tests/dragonfly/snapshot_test.py b/tests/dragonfly/snapshot_test.py index 0a650e6d130a..3307da5b8eb8 100644 --- a/tests/dragonfly/snapshot_test.py +++ b/tests/dragonfly/snapshot_test.py @@ -66,7 +66,7 @@ async def test_snapshot(self, df_seeder_factory, async_client, df_server): assert await seeder.compare(start_capture) -@dfly_args({**BASIC_ARGS, "dbfilename": "test-periodic.rdb", "save_schedule": "*:*"}) +@dfly_args({**BASIC_ARGS, "dbfilename": "test-periodic.dfs", "save_schedule": "*:*"}) class TestPeriodicSnapshot(SnapshotTestBase): """Test periodic snapshotting""" @pytest.fixture(autouse=True) @@ -80,4 +80,5 @@ async def test_snapshot(self, df_seeder_factory, df_server): time.sleep(60) - assert (self.tmp_dir / "test-periodic.rdb").exists() + files = [f for f in os.listdir(self.tmp_dir) if f.startswith('test-periodic')] + assert len(files) > 0 and any(f.endswith('summary.dfs') for f in files)