Skip to content

Commit

Permalink
properties not needed for test
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjstewart committed Jan 11, 2025
1 parent f8a88aa commit 02a9e20
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/test_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -846,15 +846,11 @@ def test_custom_storage_reopening(self) -> None:
"""Reopening custom index storage works as expected"""

storage = DictStorage()
settings = index.Property()
settings.writethrough = True
settings.buffering_capacity = 1

r1 = index.Index(storage, properties=settings, overwrite=True)
r1 = index.Index(storage, overwrite=True)
r1.add(555, (2, 2))
del r1
self.assertTrue(storage.hasData)

r2 = index.Index(storage, properties=settings, overwrite=False)
r2 = index.Index(storage, overwrite=False)
count = r2.count((0, 0, 10, 10))
self.assertEqual(count, 1)

0 comments on commit 02a9e20

Please sign in to comment.