Skip to content
Snippets Groups Projects
Commit 5642afaa authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

extra tests

parent fe3f50b4
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,19 @@ from tempsdb.exceptions import Corruption
class TestSeries(unittest.TestCase):
def test_empty(self):
"""
Test trimming after writing without closing the series.
Also tests out close_chunks and open_chunks_mmap_size
"""
from tempsdb.series import create_series
series = create_series('test18', 'test18', 10, 4096)
try:
self.assertRaises(ValueError, series.get_current_value)
finally:
series.close()
def test_trim_multiple_chunks_wo_close(self):
"""
Test trimming after writing without closing the series.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment