diff --git a/tests/test_series.py b/tests/test_series.py index 658e75a76363953c7fdae7fca4320e8a8dbb8c73..627051266440b4fa1a4c65f0bac7bbc888c48aa3 100644 --- a/tests/test_series.py +++ b/tests/test_series.py @@ -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.