Skip to content

Commit

Permalink
fix(pytest): fix periodic test (#804)
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Oleshko <vlad@dragonflydb.io>
  • Loading branch information
dranikpg authored Feb 15, 2023
1 parent 6dedb33 commit 83256bd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/dragonfly/snapshot_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)

0 comments on commit 83256bd

Please sign in to comment.